Package net.royalur.rules.state
Class ResignedGameState
java.lang.Object
net.royalur.rules.state.GameState
net.royalur.rules.state.ControlGameState
net.royalur.rules.state.ResignedGameState
A game state that represents a player resigning from a game.
-
Constructor Summary
ConstructorsConstructorDescriptionResignedGameState(Board board, PlayerState lightPlayer, PlayerState darkPlayer, long timeSinceGameStartMs, PlayerType player) Instantiates a game state representing a player resigning from a game. -
Method Summary
Methods inherited from class net.royalur.rules.state.ControlGameState
getPlayer, getSubject, hasPlayer, isFinished, isPlayableMethods inherited from class net.royalur.rules.state.GameState
addMetadata, addMetadata, clearMetadata, getBoard, getDarkPlayer, getLightPlayer, getMetadata, getMetadata, getPlayerState, getTimeSinceGameStartMs, hasMetadata, removeMetadata
-
Constructor Details
-
ResignedGameState
public ResignedGameState(Board board, PlayerState lightPlayer, PlayerState darkPlayer, long timeSinceGameStartMs, PlayerType player) Instantiates a game state representing a player resigning from a game.- 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.player- The player who resigned the game.
-
-
Method Details
-
describe
Description copied from class:GameStateGenerates an English text description of the state of the game. -
equals
- Overrides:
equalsin classControlGameState
-