Uses of Interface
net.royalur.model.dice.Roll
Package
Description
-
Uses of Roll in net.royalur
Modifier 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. -
Uses of Roll in net.royalur.model.dice
Modifier and TypeClassDescriptionfinal record
A roll of dice that contains just a value.Modifier 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
Modifier and TypeMethodDescriptionModifier 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
Modifier 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
Modifier 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
Modifier 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.ModifierConstructorDescriptionMovedGameState
(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.