|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object spellcast.game.Turn
public class Turn
A Turn contains a number that indicates what sequence of turns this turn is as well as a type to indicate the type of the turn. A Turn is a data object used by spellcast.
Field Summary | |
---|---|
static Turn |
AFTER_GAME
|
static Turn |
BEFORE_GAME
|
Constructor Summary | |
---|---|
Turn(int theTurnNumber,
TurnType theTurnType)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
Turn |
getNextTurn(TurnType theTurnType)
Return the next turn given the turn type. |
int |
getNumber()
The value of the turn number. |
TurnType |
getType()
The type of the turn. |
int |
hashCode()
|
boolean |
isHaste()
Indicates whether this turn is a Haste turn. |
boolean |
isNormal()
Indicates whether this turn is a Normal turn. |
boolean |
isTimeStop()
Indicates whether this turn is a TimeStop turn. |
void |
setNumber(int theTurnNumber)
Set the value of the turn number. |
void |
setType(TurnType theTurnType)
Set the value of the turn type. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Turn AFTER_GAME
public static final Turn BEFORE_GAME
Constructor Detail |
---|
public Turn(int theTurnNumber, TurnType theTurnType)
Method Detail |
---|
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public Turn getNextTurn(TurnType theTurnType)
public int getNumber()
public TurnType getType()
public int hashCode()
hashCode
in class java.lang.Object
public boolean isHaste()
public boolean isNormal()
public boolean isTimeStop()
public void setNumber(int theTurnNumber)
theTurnNumber
- Value to assign to turn number.public void setType(TurnType theTurnType)
theTurnType
- Value to assign to the tur ntype.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |