Class WaitingForRollGameState


public class WaitingForRollGameState extends PlayableGameState
A game state where the game is waiting for a player to roll the dice.
  • Constructor Details

    • WaitingForRollGameState

      public WaitingForRollGameState(Board board, PlayerState lightPlayer, PlayerState darkPlayer, long timeSinceGameStartMs, PlayerType turn)
      Instantiates a game state where the game is waiting for a player to roll the dice.
      Parameters:
      board - The state of the pieces on the board.
      lightPlayer - The state of the light player.
      darkPlayer - The state of the dark player.
      timeSinceGameStartMs - The time this state was created.
      turn - The player who can roll the dice.
  • Method Details

    • describe

      public String describe()
      Description copied from class: GameState
      Generates an English text description of the state of the game.
      Specified by:
      describe in class GameState
      Returns:
      An English text description of the state of the game.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class PlayableGameState