Cockatrice
2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Toggle main menu visibility
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
6
class
GameConfig
;
7
class
Server_Game
;
8
class
Server_AbstractUserInterface
;
9
16
class
Server_MatchGameFactory
17
{
18
public
:
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
Server_AbstractUserInterface
Definition
server_abstractuserinterface.h:28
Server_Game
Definition
server_game.h:67
Server_MatchGameFactory
Abstract factory for creating match games, forward-looking for tournament modes.
Definition
server_match_game_factory.h:17
Server_MatchGameFactory::getUserInterface
virtual Server_AbstractUserInterface * getUserInterface(const QString &playerName)=0
Resolve the user interface for playerName.
Server_MatchGameFactory::~Server_MatchGameFactory
virtual ~Server_MatchGameFactory()=default
Server_MatchGameFactory::addGameToRoom
virtual void addGameToRoom(Server_Game *game)=0
Register game with the room that owns it.
Server_MatchGameFactory::createMatchGame
virtual Server_Game * createMatchGame(const GameConfig &config, int &outGameId)=0
Create a match game from config, storing the assigned game id in outGameId.
GameConfig
Definition
game_config.h:9
libcockatrice_network
libcockatrice
network
server
remote
game
server_match_game_factory.h
Generated by
1.18.0