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

#include <game_settings.h>

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

Public Member Functions

QString getGameDescription () const override
int getMaxPlayers () const override
QString getGameTypes () const override
bool getOnlyBuddies () const override
bool getOnlyRegistered () const override
bool getSpectatorsAllowed () const override
bool getSpectatorsNeedPassword () const override
bool getSpectatorsCanTalk () const override
bool getSpectatorsCanSeeEverything () const override
bool getCreateGameAsSpectator () const override
int getDefaultStartingLifeTotal () const override
bool getShareDecklistsOnLoad () const override
bool getRememberGameSettings () const override
bool getLocalGameRememberSettings () const override
int getLocalGameMaxPlayers () const override
int getLocalGameStartingLifeTotal () const override
void setGameDescription (const QString &_gameDescription)
void setMaxPlayers (int _maxPlayers)
void setGameTypes (const QString &_gameTypes)
void setOnlyBuddies (bool _onlyBuddies)
void setOnlyRegistered (bool _onlyRegistered)
void setSpectatorsAllowed (bool _spectatorsAllowed)
void setSpectatorsNeedPassword (bool _spectatorsNeedPassword)
void setSpectatorsCanTalk (bool _spectatorsCanTalk)
void setSpectatorsCanSeeEverything (bool _spectatorsCanSeeEverything)
void setCreateGameAsSpectator (bool _createGameAsSpectator)
void setDefaultStartingLifeTotal (int _defaultStartingLifeTotal)
void setShareDecklistsOnLoad (bool _shareDecklistsOnLoad)
void setRememberGameSettings (bool _rememberGameSettings)
void setLocalGameRememberSettings (bool value)
void setLocalGameMaxPlayers (int value)
void setLocalGameStartingLifeTotal (int value)
 GameSettings (const QString &settingPath, QObject *parent=nullptr)
Public Member Functions inherited from SettingsManager
 SettingsManager (const QString &settingPath, const QString &defaultGroup=QString(), const QString &defaultSubGroup=QString(), QObject *parent=nullptr)
QVariant getValue (const QString &name) const
QVariant getValue (const QString &name, const QString &group, const QString &subGroup=QString()) const
QVariant getValue (const QString &name, const QString &group, const QString &subGroup, const QVariant &defaultValue) const
void batchWrite (std::function< void(QSettings &)> batchWriteFunction)
void sync ()
Public Member Functions inherited from IGameSettingsProvider
virtual ~IGameSettingsProvider ()=default

Private Member Functions

 GameSettings (const GameSettings &)

Friends

class SettingsCache

Additional Inherited Members

Protected Member Functions inherited from SettingsManager
QSettings getSettings () const
void setValue (const QVariant &value, const QString &name)
void setValue (const QVariant &value, const QString &name, const QString &group, const QString &subGroup=QString())
void deleteValue (const QString &name)
void deleteValue (const QString &name, const QString &group, const QString &subGroup=QString())
Protected Attributes inherited from SettingsManager
QString settingPath
QString defaultGroup
QString defaultSubGroup

Constructor & Destructor Documentation

◆ GameSettings() [1/2]

GameSettings::GameSettings ( const QString & settingPath,
QObject * parent = nullptr )
explicit
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GameSettings() [2/2]

GameSettings::GameSettings ( const GameSettings & )
private
Here is the call graph for this function:

Member Function Documentation

◆ getCreateGameAsSpectator()

bool GameSettings::getCreateGameAsSpectator ( ) const
nodiscardoverridevirtual

Implements IGameSettingsProvider.

Here is the call graph for this function:

◆ getDefaultStartingLifeTotal()

int GameSettings::getDefaultStartingLifeTotal ( ) const
nodiscardoverridevirtual

Implements IGameSettingsProvider.

Here is the call graph for this function:

◆ getGameDescription()

QString GameSettings::getGameDescription ( ) const
nodiscardoverridevirtual

Implements IGameSettingsProvider.

Here is the call graph for this function:

◆ getGameTypes()

QString GameSettings::getGameTypes ( ) const
nodiscardoverridevirtual

Implements IGameSettingsProvider.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getLocalGameMaxPlayers()

int GameSettings::getLocalGameMaxPlayers ( ) const
nodiscardoverridevirtual

Implements IGameSettingsProvider.

Here is the call graph for this function:

◆ getLocalGameRememberSettings()

bool GameSettings::getLocalGameRememberSettings ( ) const
nodiscardoverridevirtual

Implements IGameSettingsProvider.

Here is the call graph for this function:

◆ getLocalGameStartingLifeTotal()

int GameSettings::getLocalGameStartingLifeTotal ( ) const
nodiscardoverridevirtual

Implements IGameSettingsProvider.

Here is the call graph for this function:

◆ getMaxPlayers()

int GameSettings::getMaxPlayers ( ) const
nodiscardoverridevirtual

Implements IGameSettingsProvider.

Here is the call graph for this function:

◆ getOnlyBuddies()

bool GameSettings::getOnlyBuddies ( ) const
nodiscardoverridevirtual

Implements IGameSettingsProvider.

Here is the call graph for this function:

◆ getOnlyRegistered()

bool GameSettings::getOnlyRegistered ( ) const
nodiscardoverridevirtual

Implements IGameSettingsProvider.

Here is the call graph for this function:

◆ getRememberGameSettings()

bool GameSettings::getRememberGameSettings ( ) const
nodiscardoverridevirtual

Implements IGameSettingsProvider.

Here is the call graph for this function:

◆ getShareDecklistsOnLoad()

bool GameSettings::getShareDecklistsOnLoad ( ) const
nodiscardoverridevirtual

Implements IGameSettingsProvider.

Here is the call graph for this function:

◆ getSpectatorsAllowed()

bool GameSettings::getSpectatorsAllowed ( ) const
nodiscardoverridevirtual

Implements IGameSettingsProvider.

Here is the call graph for this function:

◆ getSpectatorsCanSeeEverything()

bool GameSettings::getSpectatorsCanSeeEverything ( ) const
nodiscardoverridevirtual

Implements IGameSettingsProvider.

Here is the call graph for this function:

◆ getSpectatorsCanTalk()

bool GameSettings::getSpectatorsCanTalk ( ) const
nodiscardoverridevirtual

Implements IGameSettingsProvider.

Here is the call graph for this function:

◆ getSpectatorsNeedPassword()

bool GameSettings::getSpectatorsNeedPassword ( ) const
nodiscardoverridevirtual

Implements IGameSettingsProvider.

Here is the call graph for this function:

◆ setCreateGameAsSpectator()

void GameSettings::setCreateGameAsSpectator ( bool _createGameAsSpectator)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setDefaultStartingLifeTotal()

void GameSettings::setDefaultStartingLifeTotal ( int _defaultStartingLifeTotal)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setGameDescription()

void GameSettings::setGameDescription ( const QString & _gameDescription)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setGameTypes()

void GameSettings::setGameTypes ( const QString & _gameTypes)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setLocalGameMaxPlayers()

void GameSettings::setLocalGameMaxPlayers ( int value)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setLocalGameRememberSettings()

void GameSettings::setLocalGameRememberSettings ( bool value)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setLocalGameStartingLifeTotal()

void GameSettings::setLocalGameStartingLifeTotal ( int value)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setMaxPlayers()

void GameSettings::setMaxPlayers ( int _maxPlayers)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setOnlyBuddies()

void GameSettings::setOnlyBuddies ( bool _onlyBuddies)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setOnlyRegistered()

void GameSettings::setOnlyRegistered ( bool _onlyRegistered)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setRememberGameSettings()

void GameSettings::setRememberGameSettings ( bool _rememberGameSettings)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setShareDecklistsOnLoad()

void GameSettings::setShareDecklistsOnLoad ( bool _shareDecklistsOnLoad)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setSpectatorsAllowed()

void GameSettings::setSpectatorsAllowed ( bool _spectatorsAllowed)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setSpectatorsCanSeeEverything()

void GameSettings::setSpectatorsCanSeeEverything ( bool _spectatorsCanSeeEverything)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setSpectatorsCanTalk()

void GameSettings::setSpectatorsCanTalk ( bool _spectatorsCanTalk)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setSpectatorsNeedPassword()

void GameSettings::setSpectatorsNeedPassword ( bool _spectatorsNeedPassword)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SettingsCache

friend class SettingsCache
friend

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