Uses of Interface
net.royalur.model.dice.Roll
Packages that use Roll
Package
Description
-
Uses of Roll in net.royalur
Methods in net.royalur that return RollModifier and TypeMethodDescriptionGame.getRoll()
Gets the roll that was made that can be used by the current turn player to make a move.Game.rollDice()
Rolls the dice, and updates the state of the game accordingly.Game.rollDice
(int value) Rolls the dice with a known value ofvalue
, and updates the state of the game accordingly.Methods in net.royalur with parameters of type Roll -
Uses of Roll in net.royalur.model.dice
Classes in net.royalur.model.dice that implement RollModifier and TypeClassDescriptionfinal record
A roll of dice that contains just a value.Methods in net.royalur.model.dice that return RollModifier and TypeMethodDescriptiondefault Roll
DiceFactory.createRoll
(int value) Generates a roll with the given value.BinaryDice.generateRoll
(int value) BinaryDice0AsMax.generateRoll
(int value) abstract Roll
Dice.generateRoll
(int value) Generates a roll with valuevalue
using this dice.Dice.roll()
Generates a random roll using this dice.Dice.roll
(int value) Generates a roll with valuevalue
using this dice. -
Uses of Roll in net.royalur.notation
Methods in net.royalur.notation that return RollModifier and TypeMethodDescriptionMethods in net.royalur.notation with parameters of type RollModifier and TypeMethodDescriptionDerivedStateSource.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.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) void
-
Uses of Roll in net.royalur.rules
Methods in net.royalur.rules with parameters of type RollModifier and TypeMethodDescriptionRuleSet.applyRoll
(WaitingForRollGameState state, long timeSinceGameStartMs, Roll roll) Appliesroll
tostate
to generate the new state of the game.RuleSet.findAvailableMoves
(Board board, PlayerState player, Roll roll) Finds all available moves from the given state. -
Uses of Roll in net.royalur.rules.simple
Methods in net.royalur.rules.simple with parameters of type RollModifier and TypeMethodDescriptionSimpleRuleSet.applyRoll
(WaitingForRollGameState state, long timeSinceGameStartMs, Roll roll) SimpleRuleSet.findAvailableMoves
(Board board, PlayerState player, Roll roll) -
Uses of Roll in net.royalur.rules.state
Methods in net.royalur.rules.state that return RollModifier and TypeMethodDescriptionMovedGameState.getRoll()
Gets the roll of the dice that was used for the move.RolledGameState.getRoll()
Gets the roll that the player made.WaitingForMoveGameState.getRoll()
Gets the roll that the player made.Constructors in net.royalur.rules.state with parameters of type RollModifierConstructorDescriptionMovedGameState
(Board board, PlayerState lightPlayer, PlayerState darkPlayer, long timeSinceGameStartMs, PlayerType turn, Roll roll, Move move) Instantiates a game state representing a move that was made in a game.RolledGameState
(Board board, PlayerState lightPlayer, PlayerState darkPlayer, long timeSinceGameStartMs, PlayerType turn, Roll roll, List<Move> availableMoves) Instantiates a game state that represents a roll that was made in a game.WaitingForMoveGameState
(Board board, PlayerState lightPlayer, PlayerState darkPlayer, long timeSinceGameStartMs, PlayerType turn, Roll roll, List<Move> availableMoves) Instantiates a game state where the game is waiting for a player to make a move.