Uses of Class
net.royalur.rules.RuleSet
Packages that use RuleSet
Package
Description
-
Uses of RuleSet in net.royalur
Methods in net.royalur that return RuleSetModifier 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.Methods in net.royalur with parameters of type RuleSetModifier and TypeMethodDescriptionstatic GameGame.createTimed(RuleSet rules) Instantiates a new game of the Royal Game of Ur that is timed.static GameGame.createUntimed(RuleSet rules) Instantiates a new game of the Royal Game of Ur that is untimed.Constructors in net.royalur with parameters of type RuleSet -
Uses of RuleSet in net.royalur.agent.utility
Constructors in net.royalur.agent.utility with parameters of type RuleSet -
Uses of RuleSet in net.royalur.notation
Methods in net.royalur.notation with parameters of type RuleSetModifier and TypeMethodDescriptionvoidRGN.appendDiceRoll(RuleSet rules, StringBuilder builder, RolledGameState rolledState) Encodes the dice roll fromrolledStateintobuilder.voidRGN.appendMove(RuleSet rules, StringBuilder builder, Move move) Encodes the move frommovedStateintobuilder.voidRGN.appendMove(RuleSet rules, StringBuilder builder, Move move, boolean spaceBeforeRosette) Encodes the move frommovedStateintobuilder.DerivedStateSource.createAbandonedState(RuleSet rules, long timeSinceGameStartMs, AbandonReason reason, PlayerType player) FullStateSource.createAbandonedState(RuleSet rules, long timeSinceGameStartMs, AbandonReason abandonReason, PlayerType player) abstract AbandonedGameStateStateSource.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 EndGameStateStateSource.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 MovedGameStateStateSource.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 ResignedGameStateStateSource.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 RolledGameStateStateSource.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 WaitingForMoveGameStateStateSource.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 WaitingForRollGameStateStateSource.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
Methods in net.royalur.rules that return RuleSetModifier 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
Subclasses of RuleSet in net.royalur.rules.simpleModifier and TypeClassDescriptionclassThe most common, simple, rules of the Royal Game of Ur.