Package net.royalur.rules.state
Class WaitingForRollGameState
java.lang.Object
net.royalur.rules.state.GameState
net.royalur.rules.state.OngoingGameState
net.royalur.rules.state.PlayableGameState
net.royalur.rules.state.WaitingForRollGameState
A game state where the game is waiting for a player to roll the dice.
-
Constructor Summary
ConstructorsConstructorDescriptionWaitingForRollGameState
(Board board, PlayerState lightPlayer, PlayerState darkPlayer, long timeSinceGameStartMs, PlayerType turn) Instantiates a game state where the game is waiting for a player to roll the dice. -
Method Summary
Methods inherited from class net.royalur.rules.state.PlayableGameState
isPlayable
Methods inherited from class net.royalur.rules.state.OngoingGameState
getSubject, getTurn, getTurnPlayer, getWaiting, getWaitingPlayer, isFinished
Methods inherited from class net.royalur.rules.state.GameState
addMetadata, addMetadata, clearMetadata, getBoard, getDarkPlayer, getLightPlayer, getMetadata, getMetadata, getPlayerState, getTimeSinceGameStartMs, hasMetadata, removeMetadata
-
Constructor Details
-
WaitingForRollGameState
public WaitingForRollGameState(Board board, PlayerState lightPlayer, PlayerState darkPlayer, long timeSinceGameStartMs, PlayerType turn) Instantiates a game state where the game is waiting for a player to roll the dice.- Parameters:
board
- The state of the pieces on the board.lightPlayer
- The state of the light player.darkPlayer
- The state of the dark player.timeSinceGameStartMs
- The time this state was created.turn
- The player who can roll the dice.
-
-
Method Details
-
describe
Description copied from class:GameState
Generates an English text description of the state of the game. -
equals
- Overrides:
equals
in classPlayableGameState
-