|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IGameState
Interface for GameState
model
Method Summary | |
---|---|
IPlayer |
getActivePlayer()
Returns the currently active player |
StoneHeap |
getGameHeap()
Returns the heap of stones to draw from |
IPlayer |
getNthNextPlayer(int i)
Returns the player that would be the active player after i turns |
int |
getPlayerCount()
Returns the number of players |
ITable |
getTable()
Get the current Table |
void |
nextPlayer()
Changes the activePlayer to the next Player in the list |
void |
setTable(ITable table)
Sets the current Table |
Method Detail |
---|
ITable getTable()
Table
void setTable(ITable table)
Table
table
- The new Tableint getPlayerCount()
void nextPlayer()
Player
in the list
IPlayer getActivePlayer()
StoneHeap getGameHeap()
IPlayer getNthNextPlayer(int i)
i
- number of turns
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |