Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
AbstractGame Class Reference

#include <abstract_game.h>

Inheritance diagram for AbstractGame:
[legend]
Collaboration diagram for AbstractGame:
[legend]

Public Member Functions

 AbstractGame (TabGame *tab)
TabGamegetTab () const
GameMetaInfogetGameMetaInfo ()
GameStategetGameState () const
GameEventHandlergetGameEventHandler () const
PlayerManagergetPlayerManager () const
bool isHost () const
AbstractClientgetClientForPlayer (int playerId) const
void loadReplay (GameReplay *replay)
CardItemgetCard (int playerId, const QString &zoneName, int cardId) const
void setActiveCard (CardItem *card)
CardItemgetActiveCard () const

Public Attributes

TabGametab
GameMetaInfogameMetaInfo
GameStategameState
GameEventHandlergameEventHandler
PlayerManagerplayerManager
CardItemactiveCard

Constructor & Destructor Documentation

◆ AbstractGame()

AbstractGame::AbstractGame ( TabGame * tab)
explicit
Here is the caller graph for this function:

Member Function Documentation

◆ getActiveCard()

CardItem * AbstractGame::getActiveCard ( ) const
inline

◆ getCard()

CardItem * AbstractGame::getCard ( int playerId,
const QString & zoneName,
int cardId ) const
Here is the call graph for this function:

◆ getClientForPlayer()

AbstractClient * AbstractGame::getClientForPlayer ( int playerId) const

◆ getGameEventHandler()

GameEventHandler * AbstractGame::getGameEventHandler ( ) const
inline
Here is the caller graph for this function:

◆ getGameMetaInfo()

GameMetaInfo * AbstractGame::getGameMetaInfo ( )
inline
Here is the caller graph for this function:

◆ getGameState()

GameState * AbstractGame::getGameState ( ) const
inline

◆ getPlayerManager()

PlayerManager * AbstractGame::getPlayerManager ( ) const
inline

◆ getTab()

TabGame * AbstractGame::getTab ( ) const
inline

◆ isHost()

bool AbstractGame::isHost ( ) const

◆ loadReplay()

void AbstractGame::loadReplay ( GameReplay * replay)
Here is the caller graph for this function:

◆ setActiveCard()

void AbstractGame::setActiveCard ( CardItem * card)

Member Data Documentation

◆ activeCard

CardItem* AbstractGame::activeCard

◆ gameEventHandler

GameEventHandler* AbstractGame::gameEventHandler

◆ gameMetaInfo

GameMetaInfo* AbstractGame::gameMetaInfo

◆ gameState

GameState* AbstractGame::gameState

◆ playerManager

PlayerManager* AbstractGame::playerManager

◆ tab

TabGame* AbstractGame::tab

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