org.pesullivan.game.game42
Interface Move

All Known Implementing Classes:
MillMove

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.

See Also:
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

setFromJSON

void setFromJSON(org.json.simple.JSONObject jsonMove)
Set this move based on the parameter.


toJSONObject

org.json.simple.JSONObject toJSONObject()
Returns:
this move as a JSONObject.

copy

Move copy()
Return a copy of the move.


setFrom

void setFrom(Move move)
Set this move based on the parameter.


isSame

boolean isSame(Move move)
Return true if the two moves are the same.