|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IGameState
Interface describing the state of an IgelArgernFullPresenter game
Method Summary | |
---|---|
int |
currentDieValue()
Get the current value on the die. |
java.lang.String |
currentMessage()
Get the current message. |
int |
currentPlayer()
Return the current player's number. |
ICellState |
getCell(int row,
int column)
return the ICellState object at the given location |
int |
hedgehogsPerPlayer()
Return the number of hedgehogs per player. |
int |
numColumns()
return the number of columns on the board. |
int |
numPlayers()
Return the number of players. |
int |
numRows()
return the number of rows on the board. |
Phase |
phase()
Return the current game phase. |
Method Detail |
---|
int numPlayers()
int hedgehogsPerPlayer()
Phase phase()
int currentPlayer()
ICellState getCell(int row, int column)
ICellState
object at the given location
row
- the row (indexed beginning at 0)column
- the column (indexed beginning at 0)
ICellState
object at the given location
java.lang.IllegalArgumentException
- if row
or column
is invalidint numRows()
int numColumns()
int currentDieValue()
java.lang.String currentMessage()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |