Interface TicTacToeMessageContext

All Superinterfaces:
MessageContext

public interface TicTacToeMessageContext extends MessageContext
A round of tic-tac-toe. Builds on MessageContext.
  • Method Details

    • builder

      static net.flectone.pulse.module.command.tictactoe.model.TicTacToeMessageContextImpl.TicTacToeMessageContextImplBuilder builder()
      Starts building this context.
      Returns:
      a new builder
    • ticTacToe

      @NonNull TicTacToe ticTacToe()
      The game.
      Returns:
      the game
    • gamePhase

      @NonNull TictactoeModule.GamePhase gamePhase()
      How far the round has got.
      Returns:
      how far the round has got
    • withTicTacToe

      TicTacToeMessageContext withTicTacToe(@NonNull TicTacToe ticTacToe)
      Returns a copy carrying a different value.
      Parameters:
      ticTacToe - the game
      Returns:
      the copy
    • withGamePhase

      TicTacToeMessageContext withGamePhase(@NonNull TictactoeModule.GamePhase gamePhase)
      Returns a copy carrying a different value.
      Parameters:
      gamePhase - how far the round has got
      Returns:
      the copy