![]() |
Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
|
Abstract factory for creating match games, forward-looking for tournament modes. More...
#include <server_match_game_factory.h>
Public Member Functions | |
| virtual | ~Server_MatchGameFactory ()=default |
| virtual Server_Game * | createMatchGame (const GameConfig &config, int &outGameId)=0 |
Create a match game from config, storing the assigned game id in outGameId. | |
| virtual Server_AbstractUserInterface * | getUserInterface (const QString &playerName)=0 |
Resolve the user interface for playerName. | |
| virtual void | addGameToRoom (Server_Game *game)=0 |
Register game with the room that owns it. | |
Abstract factory for creating match games, forward-looking for tournament modes.
Implementations own the rules of how a match game is constructed, how player interfaces are resolved, and how games are registered with a room.
|
virtualdefault |
|
pure virtual |
Register game with the room that owns it.
|
pure virtual |
Create a match game from config, storing the assigned game id in outGameId.
|
pure virtual |
Resolve the user interface for playerName.