Interface RockPaperScissorsMessageContext

All Superinterfaces:
MessageContext

public interface RockPaperScissorsMessageContext extends MessageContext
A round of rock-paper-scissors. Builds on MessageContext.
  • Method Details

    • builder

      static net.flectone.pulse.module.command.rockpaperscissors.model.RockPaperScissorsMessageContextImpl.RockPaperScissorsMessageContextImplBuilder builder()
      Starts building this context.
      Returns:
      a new builder
    • rockPaperScissors

      @NonNull RockPaperScissors rockPaperScissors()
      The game.
      Returns:
      the game
    • gamePhase

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

      RockPaperScissorsMessageContext withRockPaperScissors(@NonNull RockPaperScissors rockPaperScissors)
      Returns a copy carrying a different value.
      Parameters:
      rockPaperScissors - the game
      Returns:
      the copy
    • withGamePhase

      Returns a copy carrying a different value.
      Parameters:
      gamePhase - how far the round has got
      Returns:
      the copy