public class GameState
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
activePlayerIndex |
shared.model.GameStatus |
gameState |
Constructor and Description |
---|
GameState() |
Modifier and Type | Method and Description |
---|---|
boolean |
endGame()
Sets the game state to finished
|
boolean |
nextTurn()
Sets the game state to the next player's turn (roll phase)
|
boolean |
startBuildPhase()
Sets the game state to the same player's turn (build phase)
|
boolean |
startGame()
Sets the game state to the first player's turn (roll phase)
|
public shared.model.GameStatus gameState
public int activePlayerIndex
public boolean startGame()
public boolean nextTurn()
public boolean startBuildPhase()
public boolean endGame()