Uses of Enum Class
net.royalur.model.AbandonReason
Package
Description
-
Uses of AbandonReason in net.royalur
Modifier and TypeMethodDescriptionGame.getAbandonReason()
Gets the reason this game was abandoned.Modifier and TypeMethodDescriptionvoid
Game.abandon
(AbandonReason reason, PlayerType player) Marks that the game was abandoned due toreason
. -
Uses of AbandonReason in net.royalur.model
Modifier and TypeMethodDescriptionstatic AbandonReason
Retrieves the abandon reason with .static AbandonReason
Returns the enum constant of this class with the specified name.static AbandonReason[]
AbandonReason.values()
Returns an array containing the constants of this enum class, in the order they are declared. -
Uses of AbandonReason in net.royalur.notation
Modifier and TypeMethodDescriptionDerivedStateSource.createAbandonedState
(RuleSet rules, long timeSinceGameStartMs, AbandonReason reason, PlayerType player) FullStateSource.createAbandonedState
(RuleSet rules, long timeSinceGameStartMs, AbandonReason abandonReason, PlayerType player) abstract AbandonedGameState
StateSource.createAbandonedState
(RuleSet rules, long timeSinceGameStartMs, AbandonReason abandonReason, PlayerType player) -
Uses of AbandonReason in net.royalur.rules
Modifier and TypeMethodDescriptionRuleSet.applyAbandon
(GameState state, long timeSinceGameStartMs, AbandonReason reason, PlayerType player) Applies an abandonment of the game due toreason
. -
Uses of AbandonReason in net.royalur.rules.state
Modifier and TypeMethodDescriptionAbandonedGameState.getReason()
Gets the reason that the game was abandoned.ModifierConstructorDescriptionAbandonedGameState
(Board board, PlayerState lightPlayer, PlayerState darkPlayer, long timeSinceGameStartMs, AbandonReason reason, PlayerType player) Instantiates a game state representing a game being abandoned.