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
ConstructorDescriptionResignedGameState
(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, isPlayable
Methods inherited from class net.royalur.rules.state.GameState
getBoard, getDarkPlayer, getLightPlayer, getPlayerState, getTimeSinceGameStartMs
-
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:GameState
Generates an English text description of the state of the game. -
equals
- Overrides:
equals
in classControlGameState
-