|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GamePlayer<M extends Move>
The GamePlayer interface allows for communication between the contoller and objects that generate moves such as the view or the AI.
Method Summary | |
---|---|
boolean |
automaticallyTimed()
If a GamePlayer is automatically timed the time is handled by the GameController if it is not automatically timed, the time for a move needs to be handled by the GamePlayer |
void |
gameEnded()
Informs the player that this game is over, and it will not be asked for any more moves. |
M |
getMove(GameController controller)
Asks the player for a move, if the player has a move the move is returned, if the player doesn't, null is returned immediately Once this GamePlayer is able to return a valid move it calls notifyControllerHasMove() on the controller. |
Player |
getPlayerType()
|
Method Detail |
---|
M getMove(GameController controller)
void gameEnded()
Player getPlayerType()
boolean automaticallyTimed()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |