![]() |
Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
|
Strategy hook invoked when a game has finished to decide the match result. More...
#include <server_match_result_strategy.h>
Public Member Functions | |
| virtual | ~Server_MatchResultStrategy ()=default |
| virtual bool | onGameFinished (Server_Game *game, int playing, Server_AbstractPlayer *lastPlayer)=0 |
| Called when a game has finished. | |
Strategy hook invoked when a game has finished to decide the match result.
Subclasses can report the match outcome (e.g. to a tournament backend) and decide whether the game should be closed permanently; the default implementation never closes the game, preserving the normal return-to-lobby behavior.
|
virtualdefault |
|
pure virtual |
Called when a game has finished.
Implemented in Server_NullMatchResultStrategy.