Uses of Class
net.royalur.rules.state.GameState
Packages that use GameState
Package
Description
-
Uses of GameState in net.royalur
Methods in net.royalur that return GameStateModifier and TypeMethodDescriptionGame.getState()
Retrieve the state that the game is currently in.Methods in net.royalur that return types with arguments of type GameStateModifier and TypeMethodDescriptionGame.getLandmarkStates()
Gets all moves that were made in the game, as well as the current state of the game.Game.getStates()
Gets the states that have occurred so far in the game.Methods in net.royalur with parameters of type GameStateModifier and TypeMethodDescriptionvoid
Adds the statestate
to this game.Method parameters in net.royalur with type arguments of type GameStateModifier and TypeMethodDescriptionvoid
Adds all states fromstates
to this game.Constructor parameters in net.royalur with type arguments of type GameStateModifierConstructorDescriptionGame
(RuleSet rules, GameMetadata metadata, List<GameState> states) Instantiates a game of the Royal Game of Ur. -
Uses of GameState in net.royalur.lut
Methods in net.royalur.lut with parameters of type GameStateModifier and TypeMethodDescriptiondouble
Lut.getLightWinPercent
(GameState state) Assumes that the game is using symmetrical paths. -
Uses of GameState in net.royalur.notation
Methods in net.royalur.notation that return GameStateModifier and TypeMethodDescriptionJsonNotation.readCompleteState
(RuleSet rules, com.fasterxml.jackson.databind.node.ObjectNode json) JsonNotation.readDerivedState
(RuleSet rules, StateSource stateSource, com.fasterxml.jackson.databind.node.ObjectNode json) Methods in net.royalur.notation that return types with arguments of type GameStateModifier and TypeMethodDescriptionDerivedStateSource.getAllStates()
JsonNotation.readStates
(RuleSet rules, GameState initialState, com.fasterxml.jackson.databind.node.ArrayNode json) Methods in net.royalur.notation with parameters of type GameStateModifier and TypeMethodDescriptionJsonNotation.getStateType
(GameState state) int
DerivedStateSource.lastIndexOf
(GameState state) JsonNotation.readStates
(RuleSet rules, GameState initialState, com.fasterxml.jackson.databind.node.ArrayNode json) void
JsonNotation.writeCompleteState
(com.fasterxml.jackson.core.JsonGenerator generator, GameState state) void
JsonNotation.writeDerivedState
(com.fasterxml.jackson.core.JsonGenerator generator, GameState state) Method parameters in net.royalur.notation with type arguments of type GameStateModifier and TypeMethodDescriptionvoid
JsonNotation.writeStates
(com.fasterxml.jackson.core.JsonGenerator generator, List<GameState> states) Constructors in net.royalur.notation with parameters of type GameState -
Uses of GameState in net.royalur.rules
Methods in net.royalur.rules that return GameStateModifier and TypeMethodDescriptionabstract GameState
RuleSet.generateInitialGameState()
Generates the initial state for a game.Methods in net.royalur.rules that return types with arguments of type GameStateModifier and TypeMethodDescriptionRuleSet.applyAbandon
(GameState state, long timeSinceGameStartMs, AbandonReason reason, PlayerType player) Applies an abandonment of the game due toreason
.RuleSet.applyMove
(WaitingForMoveGameState state, long timeSinceGameStartMs, Move move) Appliesmove
tostate
to generate the new state of the game.RuleSet.applyResign
(GameState state, long timeSinceGameStartMs, PlayerType player) Applies a resignation byplayer
to generate the new state of the game.RuleSet.applyRoll
(WaitingForRollGameState state, long timeSinceGameStartMs, Roll roll) Appliesroll
tostate
to generate the new state of the game.RuleSet.selectLandmarkStates
(List<GameState> states) Selects only the states that are required to reproduce exactly what happened in a game using this rule set.Methods in net.royalur.rules with parameters of type GameStateModifier and TypeMethodDescriptionRuleSet.applyAbandon
(GameState state, long timeSinceGameStartMs, AbandonReason reason, PlayerType player) Applies an abandonment of the game due toreason
.RuleSet.applyResign
(GameState state, long timeSinceGameStartMs, PlayerType player) Applies a resignation byplayer
to generate the new state of the game.Method parameters in net.royalur.rules with type arguments of type GameStateModifier and TypeMethodDescriptionRuleSet.selectLandmarkStates
(List<GameState> states) Selects only the states that are required to reproduce exactly what happened in a game using this rule set. -
Uses of GameState in net.royalur.rules.simple
Methods in net.royalur.rules.simple that return GameStateMethods in net.royalur.rules.simple that return types with arguments of type GameStateModifier and TypeMethodDescriptionSimpleRuleSet.applyMove
(WaitingForMoveGameState state, long timeSinceGameStartMs, Move move) SimpleRuleSet.applyRoll
(WaitingForRollGameState state, long timeSinceGameStartMs, Roll roll) SimpleRuleSet.selectLandmarkStates
(List<GameState> states) Method parameters in net.royalur.rules.simple with type arguments of type GameState -
Uses of GameState in net.royalur.rules.simple.fast
Methods in net.royalur.rules.simple.fast with parameters of type GameState -
Uses of GameState in net.royalur.rules.state
Subclasses of GameState in net.royalur.rules.stateModifier and TypeClassDescriptionclass
A game state that represents a game being abandoned.class
A game state that is included in the middle of a game to record an action that was taken, but that is not a valid state to be in.class
A game state that records a control action that was made.class
A game state where a player has won the game.class
A game state that represents a move of a piece on the board.class
A game state from within a game where a winner has not yet been determined.class
A game state where we are waiting for interactions from a player.class
A game state that represents a player resigning from a game.class
A game state that represents a roll that was made in a game.class
A game state where the game is waiting for a player to make a move.class
A game state where the game is waiting for a player to roll the dice.