Interface TicTacToeMessageContext
- All Superinterfaces:
MessageContext
A round of tic-tac-toe.
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.tictactoe.model.TicTacToeMessageContextImpl.TicTacToeMessageContextImplBuilderbuilder()Starts building this context.@NonNull TictactoeModule.GamePhaseHow far the round has got.@NonNull TicTacToeThe game.withGamePhase(@NonNull TictactoeModule.GamePhase gamePhase) Returns a copy carrying a different value.withTicTacToe(@NonNull TicTacToe ticTacToe) 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.tictactoe.model.TicTacToeMessageContextImpl.TicTacToeMessageContextImplBuilder builder()Starts building this context.- Returns:
- a new builder
-
ticTacToe
-
gamePhase
@NonNull TictactoeModule.GamePhase gamePhase()How far the round has got.- Returns:
- how far the round has got
-
withTicTacToe
Returns a copy carrying a different value.- Parameters:
ticTacToe- the game- Returns:
- the copy
-
withGamePhase
Returns a copy carrying a different value.- Parameters:
gamePhase- how far the round has got- Returns:
- the copy
-