Uses of Class
net.royalur.rules.RuleSet
Package
Description
-
Uses of RuleSet in net.royalur
Modifier and TypeMethodDescriptionGameBuilder.buildRules()
Generates a rule set to match the settings in this builder.Game.getRules()
Gets the set of rules that are being used for this game.Modifier and TypeMethodDescriptionstatic Game
Game.createUntimed
(RuleSet rules) Instantiates a new game of the Royal Game of Ur that is untimed. -
Uses of RuleSet in net.royalur.agent.utility
-
Uses of RuleSet in net.royalur.notation
Modifier and TypeMethodDescriptionvoid
RGN.appendDiceRoll
(RuleSet rules, StringBuilder builder, RolledGameState rolledState) Encodes the dice roll fromrolledState
intobuilder
.void
RGN.appendMove
(RuleSet rules, StringBuilder builder, Move move) Encodes the move frommovedState
intobuilder
.void
RGN.appendMove
(RuleSet rules, StringBuilder builder, Move move, boolean spaceBeforeRosette) Encodes the move frommovedState
intobuilder
.DerivedStateSource.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) DerivedStateSource.createEndState
(RuleSet rules, long timeSinceGameStartMs, PlayerType winner) FullStateSource.createEndState
(RuleSet rules, long timeSinceGameStartMs, PlayerType winner) abstract EndGameState
StateSource.createEndState
(RuleSet rules, long timeSinceGameStartMs, PlayerType winner) DerivedStateSource.createMovedState
(RuleSet rules, long timeSinceGameStartMs, PlayerType turn, Roll roll, Move move) FullStateSource.createMovedState
(RuleSet rules, long timeSinceGameStartMs, PlayerType turn, Roll roll, Move move) abstract MovedGameState
StateSource.createMovedState
(RuleSet rules, long timeSinceGameStartMs, PlayerType turn, Roll roll, Move move) DerivedStateSource.createResignedState
(RuleSet rules, long timeSinceGameStartMs, PlayerType player) FullStateSource.createResignedState
(RuleSet rules, long timeSinceGameStartMs, PlayerType player) abstract ResignedGameState
StateSource.createResignedState
(RuleSet rules, long timeSinceGameStartMs, PlayerType player) DerivedStateSource.createRolledState
(RuleSet rules, long timeSinceGameStartMs, PlayerType turn, Roll roll) FullStateSource.createRolledState
(RuleSet rules, long timeSinceGameStartMs, PlayerType turn, Roll roll) abstract RolledGameState
StateSource.createRolledState
(RuleSet rules, long timeSinceGameStartMs, PlayerType turn, Roll roll) DerivedStateSource.createWaitingForMoveState
(RuleSet rules, long timeSinceGameStartMs, PlayerType turn, Roll roll) FullStateSource.createWaitingForMoveState
(RuleSet rules, long timeSinceGameStartMs, PlayerType turn, Roll roll) abstract WaitingForMoveGameState
StateSource.createWaitingForMoveState
(RuleSet rules, long timeSinceGameStartMs, PlayerType turn, Roll roll) DerivedStateSource.createWaitingForRollState
(RuleSet rules, long timeSinceGameStartMs, PlayerType turn) FullStateSource.createWaitingForRollState
(RuleSet rules, long timeSinceGameStartMs, PlayerType turn) abstract WaitingForRollGameState
StateSource.createWaitingForRollState
(RuleSet rules, long timeSinceGameStartMs, PlayerType turn) JsonNotation.readAbandonedState
(RuleSet rules, long timeSinceGameStartMs, StateSource stateSource, com.fasterxml.jackson.databind.node.ObjectNode json, PlayerType player) JsonNotation.readActionState
(RuleSet rules, long timeSinceGameStartMs, StateSource stateSource, com.fasterxml.jackson.databind.node.ObjectNode json, String stateType, PlayerType turn) JsonNotation.readCompleteState
(RuleSet rules, com.fasterxml.jackson.databind.node.ObjectNode json) JsonNotation.readControlState
(RuleSet rules, long timeSinceGameStartMs, StateSource stateSource, com.fasterxml.jackson.databind.node.ObjectNode json, String stateType) JsonNotation.readDerivedState
(RuleSet rules, StateSource stateSource, com.fasterxml.jackson.databind.node.ObjectNode json) JsonNotation.readEndState
(RuleSet rules, long timeSinceGameStartMs, StateSource stateSource, com.fasterxml.jackson.databind.node.ObjectNode json) JsonNotation.readMovedState
(RuleSet rules, long timeSinceGameStartMs, StateSource stateSource, com.fasterxml.jackson.databind.node.ObjectNode json, PlayerType turn) JsonNotation.readMoveList
(RuleSet rules, com.fasterxml.jackson.databind.node.ArrayNode json) JsonNotation.readNullablePiece
(RuleSet rules, com.fasterxml.jackson.databind.node.ObjectNode json, String key) JsonNotation.readOldPiece
(RuleSet rules, com.fasterxml.jackson.databind.node.ObjectNode json) JsonNotation.readOngoingState
(RuleSet rules, long timeSinceGameStartMs, StateSource stateSource, com.fasterxml.jackson.databind.node.ObjectNode json, String stateType) JsonNotation.readPiece
(RuleSet rules, com.fasterxml.jackson.databind.node.ObjectNode json, String key) JsonNotation.readPlayableState
(RuleSet rules, long timeSinceGameStartMs, StateSource stateSource, com.fasterxml.jackson.databind.node.ObjectNode json, String stateType, PlayerType turn) JsonNotation.readPlayerState
(RuleSet rules, PlayerType playerType, com.fasterxml.jackson.databind.node.ObjectNode json) JsonNotation.readResignedState
(RuleSet rules, long timeSinceGameStartMs, StateSource stateSource, com.fasterxml.jackson.databind.node.ObjectNode json, PlayerType player) JsonNotation.readRolledState
(RuleSet rules, long timeSinceGameStartMs, StateSource stateSource, com.fasterxml.jackson.databind.node.ObjectNode json, PlayerType turn) JsonNotation.readStates
(RuleSet rules, GameState initialState, com.fasterxml.jackson.databind.node.ArrayNode json) JsonNotation.readWaitingForMoveState
(RuleSet rules, long timeSinceGameStartMs, StateSource stateSource, com.fasterxml.jackson.databind.node.ObjectNode json, PlayerType turn) JsonNotation.readWaitingForRollState
(RuleSet rules, long timeSinceGameStartMs, StateSource stateSource, com.fasterxml.jackson.databind.node.ObjectNode json, PlayerType turn) -
Uses of RuleSet in net.royalur.rules
Modifier and TypeMethodDescriptionRuleSetProvider.create
(GameSettings settings, GameMetadata metadata) Creates a rule set to match the given settings and game metadata. -
Uses of RuleSet in net.royalur.rules.simple
Modifier and TypeClassDescriptionclass
The most common, simple, rules of the Royal Game of Ur.