![]() |
Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
|
Strategy hook invoked around a game's lifecycle transitions. More...
#include <server_game_lifecycle_strategy.h>
Public Types | |
| enum class | StartAction { ProceedNormal , Handled } |
| How the game start should proceed after this hook returns. More... | |
Public Member Functions | |
| virtual | ~Server_GameLifecycleStrategy ()=default |
| virtual StartAction | onGameStarting (Server_Game *game)=0 |
| Called when a game is about to start. | |
Strategy hook invoked around a game's lifecycle transitions.
Subclasses can intercept the game start to perform custom setup (e.g. draft or tournament initialization); the default implementation never intercepts.
|
strong |
|
virtualdefault |
|
pure virtual |
Called when a game is about to start.
Implemented in Server_DefaultLifecycleStrategy.