public class GameState
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
int |
activePlayerIndex |
private static long |
serialVersionUID |
GameRound |
state |
Constructor and Description |
---|
GameState() |
Modifier and Type | Method and Description |
---|---|
void |
endGame() |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
boolean |
IsEndGame()
checks if the game state is finished
|
boolean |
IsSetup()
Whether the game is in setup or not
|
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)
|
boolean |
startRobbing(boolean requireDiscard)
Start robbing
|
boolean |
stopRobbing()
Stop the robbing
|
boolean |
stopRolling() |
private static final long serialVersionUID
public GameRound state
public int activePlayerIndex
public boolean startGame()
public boolean nextTurn()
public boolean startBuildPhase()
public boolean startRobbing(boolean requireDiscard)
public boolean stopRobbing()
public boolean stopRolling()
public boolean IsEndGame()
public boolean IsSetup()
public void endGame()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object