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 TypeMethodDescriptionvoidAdds the statestateto this game.Method parameters in net.royalur with type arguments of type GameStateModifier and TypeMethodDescriptionvoidAdds all states fromstatesto 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 TypeMethodDescriptiondoubleLut.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) intDerivedStateSource.lastIndexOf(GameState state) JsonNotation.readStates(RuleSet rules, GameState initialState, com.fasterxml.jackson.databind.node.ArrayNode json) voidJsonNotation.writeCompleteState(com.fasterxml.jackson.core.JsonGenerator generator, GameState state) voidJsonNotation.writeDerivedState(com.fasterxml.jackson.core.JsonGenerator generator, GameState state) Method parameters in net.royalur.notation with type arguments of type GameStateModifier and TypeMethodDescriptionvoidJsonNotation.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 GameStateRuleSet.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) Appliesmovetostateto generate the new state of the game.RuleSet.applyResign(GameState state, long timeSinceGameStartMs, PlayerType player) Applies a resignation byplayerto generate the new state of the game.RuleSet.applyRoll(WaitingForRollGameState state, long timeSinceGameStartMs, Roll roll) Appliesrolltostateto 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 byplayerto 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 TypeClassDescriptionclassA game state that represents a game being abandoned.classA 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.classA game state that records a control action that was made.classA game state where a player has won the game.classA game state that represents a move of a piece on the board.classA game state from within a game where a winner has not yet been determined.classA game state where we are waiting for interactions from a player.classA game state that represents a player resigning from a game.classA game state that represents a roll that was made in a game.classA game state where the game is waiting for a player to make a move.classA game state where the game is waiting for a player to roll the dice.