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

#include <game_meta_info.h>

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

Public Slots

void setStarted (bool s)
void setSpectatorsOmniscient (bool v)

Signals

void startedChanged (bool started)
void spectatorsOmniscienceChanged (bool omniscient)

Public Member Functions

 GameMetaInfo (AbstractGame *parent)
void setFromProto (const ServerInfo_Game &gi)
const ServerInfo_Game & proto () const
int gameId () const
int maxPlayers () const
QString description () const
bool started () const
bool spectatorsOmniscient () const
bool spectatorsCanChat () const
int gameTypesSize () const
int gameTypeIdAt (int index) const
QMap< int, QString > getRoomGameTypes () const
void setRoomGameTypes (QMap< int, QString > _roomGameTypes)
QString findRoomGameType (int index)

Public Attributes

QMap< int, QString > roomGameTypes

Private Attributes

ServerInfo_Game gameInfo_

Constructor & Destructor Documentation

◆ GameMetaInfo()

GameMetaInfo::GameMetaInfo ( AbstractGame * parent)
explicit

Member Function Documentation

◆ description()

QString GameMetaInfo::description ( ) const
inline

◆ findRoomGameType()

QString GameMetaInfo::findRoomGameType ( int index)
inline

◆ gameId()

int GameMetaInfo::gameId ( ) const
inline
Here is the caller graph for this function:

◆ gameTypeIdAt()

int GameMetaInfo::gameTypeIdAt ( int index) const
inline

◆ gameTypesSize()

int GameMetaInfo::gameTypesSize ( ) const
inline

◆ getRoomGameTypes()

QMap< int, QString > GameMetaInfo::getRoomGameTypes ( ) const
inline

◆ maxPlayers()

int GameMetaInfo::maxPlayers ( ) const
inline

◆ proto()

const ServerInfo_Game & GameMetaInfo::proto ( ) const
inline

◆ setFromProto()

void GameMetaInfo::setFromProto ( const ServerInfo_Game & gi)
inline

◆ setRoomGameTypes()

void GameMetaInfo::setRoomGameTypes ( QMap< int, QString > _roomGameTypes)
inline

◆ setSpectatorsOmniscient

void GameMetaInfo::setSpectatorsOmniscient ( bool v)
inlineslot
Here is the call graph for this function:

◆ setStarted

void GameMetaInfo::setStarted ( bool s)
inlineslot
Here is the call graph for this function:

◆ spectatorsCanChat()

bool GameMetaInfo::spectatorsCanChat ( ) const
inline

◆ spectatorsOmniscienceChanged

void GameMetaInfo::spectatorsOmniscienceChanged ( bool omniscient)
signal
Here is the caller graph for this function:

◆ spectatorsOmniscient()

bool GameMetaInfo::spectatorsOmniscient ( ) const
inline

◆ started()

bool GameMetaInfo::started ( ) const
inline
Here is the caller graph for this function:

◆ startedChanged

void GameMetaInfo::startedChanged ( bool started)
signal
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ gameInfo_

ServerInfo_Game GameMetaInfo::gameInfo_
private

◆ roomGameTypes

QMap<int, QString> GameMetaInfo::roomGameTypes

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