Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
server_match_game_factory.h
Go to the documentation of this file.
1#ifndef SERVER_MATCH_GAME_FACTORY_H
2#define SERVER_MATCH_GAME_FACTORY_H
3
4#include <QString>
5
6class GameConfig;
7class Server_Game;
9
17{
18public:
19 virtual ~Server_MatchGameFactory() = default;
20
22 virtual Server_Game *createMatchGame(const GameConfig &config, int &outGameId) = 0;
24 virtual Server_AbstractUserInterface *getUserInterface(const QString &playerName) = 0;
26 virtual void addGameToRoom(Server_Game *game) = 0;
27};
28
29#endif
Definition server_abstractuserinterface.h:20
Definition server_game.h:52
Abstract factory for creating match games, forward-looking for tournament modes.
Definition server_match_game_factory.h:17
virtual Server_AbstractUserInterface * getUserInterface(const QString &playerName)=0
Resolve the user interface for playerName.
virtual ~Server_MatchGameFactory()=default
virtual void addGameToRoom(Server_Game *game)=0
Register game with the room that owns it.
virtual Server_Game * createMatchGame(const GameConfig &config, int &outGameId)=0
Create a match game from config, storing the assigned game id in outGameId.
Definition game_config.h:9