|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.palmmedia.yahtzee.game.GameContext
public class GameContext
The context containing all states required for the game.
Field Summary | |
---|---|
int |
currentPlayerIndex
The index of the current player. |
int |
currentStep
The current step/round in the game (1-13). |
Dice[] |
dices
The dices. |
Element |
markedElement
The marked/selected element. |
List<Player> |
players
The players. |
int |
rollCount
The number of dice rolls of the current player (1-3) |
Constructor Summary | |
---|---|
GameContext(List<Player> players)
Constructor. |
Method Summary | |
---|---|
Player |
getCurrentPlayer()
Gets the current player. |
int |
getNumberOfPlayers()
Gets the number of players. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public List<Player> players
public Element markedElement
public Dice[] dices
public int rollCount
public int currentStep
public int currentPlayerIndex
Constructor Detail |
---|
public GameContext(List<Player> players)
players
- The players.Method Detail |
---|
public Player getCurrentPlayer()
public int getNumberOfPlayers()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |