Interface RockPaperScissorsMessageContext
- All Superinterfaces:
MessageContext
A round of rock-paper-scissors.
Builds on
MessageContext.-
Nested Class Summary
Nested classes/interfaces inherited from interface MessageContext
MessageContext.CacheKey -
Method Summary
Modifier and TypeMethodDescriptionstatic net.flectone.pulse.module.command.rockpaperscissors.model.RockPaperScissorsMessageContextImpl.RockPaperScissorsMessageContextImplBuilderbuilder()Starts building this context.@NonNull RockpaperscissorsModule.GamePhaseHow far the round has got.@NonNull RockPaperScissorsThe game.withGamePhase(@NonNull RockpaperscissorsModule.GamePhase gamePhase) Returns a copy carrying a different value.withRockPaperScissors(@NonNull RockPaperScissors rockPaperScissors) Returns a copy carrying a different value.Methods inherited from interface MessageContext
addFlag, addFlags, addTagResolver, addTagResolvers, base, createCacheKey, flags, isFlag, message, receiver, sender, tagResolver, toBuilder, uuid, withBase, withFlags, withMessage, withReceiver, withSender, withTagResolver, withUuid
-
Method Details
-
builder
static net.flectone.pulse.module.command.rockpaperscissors.model.RockPaperScissorsMessageContextImpl.RockPaperScissorsMessageContextImplBuilder builder()Starts building this context.- Returns:
- a new builder
-
rockPaperScissors
-
gamePhase
@NonNull RockpaperscissorsModule.GamePhase gamePhase()How far the round has got.- Returns:
- how far the round has got
-
withRockPaperScissors
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
-