Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
Server_MatchGameFactory Class Referenceabstract

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_GamecreateMatchGame (const GameConfig &config, int &outGameId)=0
 Create a match game from config, storing the assigned game id in outGameId.
virtual Server_AbstractUserInterfacegetUserInterface (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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~Server_MatchGameFactory()

virtual Server_MatchGameFactory::~Server_MatchGameFactory ( )
virtualdefault

Member Function Documentation

◆ addGameToRoom()

virtual void Server_MatchGameFactory::addGameToRoom ( Server_Game * game)
pure virtual

Register game with the room that owns it.

◆ createMatchGame()

virtual Server_Game * Server_MatchGameFactory::createMatchGame ( const GameConfig & config,
int & outGameId )
pure virtual

Create a match game from config, storing the assigned game id in outGameId.

◆ getUserInterface()

virtual Server_AbstractUserInterface * Server_MatchGameFactory::getUserInterface ( const QString & playerName)
pure virtual

Resolve the user interface for playerName.


The documentation for this class was generated from the following file: