|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Move
Describes a move that a player can make on a Game Board.
A "move" is the smallest discrete decisive action a player can take.
Game "turns" are comprised of one or more moves,
and once a turn is over then it is the other player's turn.
Game,
Board| Method Summary | |
|---|---|
Move |
copy()
Return a copy of the move. |
boolean |
isSame(Move move)
Return true if the two moves are the same. |
void |
setFrom(Move move)
Set this move based on the parameter. |
void |
setFromJSON(org.json.simple.JSONObject jsonMove)
Set this move based on the parameter. |
org.json.simple.JSONObject |
toJSONObject()
|
| Method Detail |
|---|
void setFromJSON(org.json.simple.JSONObject jsonMove)
org.json.simple.JSONObject toJSONObject()
Move copy()
void setFrom(Move move)
boolean isSame(Move move)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||