Cockatrice 2026-06-01-Development-3.1.0-beta.3
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
GameFilterConfigs Struct Reference

The possible game filter configs. More...

#include <game_filter_configs.h>

Public Member Functions

bool operator== (const GameFilterConfigs &) const =default
bool isDefault () const
 Checks if this config has exactly the default values.

Public Attributes

bool hideBuddiesOnlyGames = false
bool hideIgnoredUserGames = false
bool hideFullGames = false
bool hideGamesThatStarted = false
bool hidePasswordProtectedGames = false
bool hideNotBuddyCreatedGames = false
bool hideOpenDecklistGames = false
QString gameNameFilter = ""
QStringList creatorNameFilters = {}
QSet< int > gameTypeFilter = {}
int maxPlayersFilterMin = DEFAULT_MAX_PLAYERS_MIN
int maxPlayersFilterMax = DEFAULT_MAX_PLAYERS_MAX
QTime maxGameAge = {}
bool showOnlyIfSpectatorsCanWatch = false
bool showSpectatorPasswordProtected = false
bool showOnlyIfSpectatorsCanChat = false
bool showOnlyIfSpectatorsCanSeeHands = false

Static Public Attributes

static constexpr int DEFAULT_MAX_PLAYERS_MIN = 1
static constexpr int DEFAULT_MAX_PLAYERS_MAX = 99

Detailed Description

The possible game filter configs.

Member Function Documentation

◆ isDefault()

bool GameFilterConfigs::isDefault ( ) const

Checks if this config has exactly the default values.

Returns
Whether this config has the default values

◆ operator==()

bool GameFilterConfigs::operator== ( const GameFilterConfigs & ) const
default

Member Data Documentation

◆ creatorNameFilters

QStringList GameFilterConfigs::creatorNameFilters = {}

◆ DEFAULT_MAX_PLAYERS_MAX

int GameFilterConfigs::DEFAULT_MAX_PLAYERS_MAX = 99
staticconstexpr

◆ DEFAULT_MAX_PLAYERS_MIN

int GameFilterConfigs::DEFAULT_MAX_PLAYERS_MIN = 1
staticconstexpr

◆ gameNameFilter

QString GameFilterConfigs::gameNameFilter = ""

◆ gameTypeFilter

QSet<int> GameFilterConfigs::gameTypeFilter = {}

◆ hideBuddiesOnlyGames

bool GameFilterConfigs::hideBuddiesOnlyGames = false

◆ hideFullGames

bool GameFilterConfigs::hideFullGames = false

◆ hideGamesThatStarted

bool GameFilterConfigs::hideGamesThatStarted = false

◆ hideIgnoredUserGames

bool GameFilterConfigs::hideIgnoredUserGames = false

◆ hideNotBuddyCreatedGames

bool GameFilterConfigs::hideNotBuddyCreatedGames = false

◆ hideOpenDecklistGames

bool GameFilterConfigs::hideOpenDecklistGames = false

◆ hidePasswordProtectedGames

bool GameFilterConfigs::hidePasswordProtectedGames = false

◆ maxGameAge

QTime GameFilterConfigs::maxGameAge = {}

◆ maxPlayersFilterMax

int GameFilterConfigs::maxPlayersFilterMax = DEFAULT_MAX_PLAYERS_MAX

◆ maxPlayersFilterMin

int GameFilterConfigs::maxPlayersFilterMin = DEFAULT_MAX_PLAYERS_MIN

◆ showOnlyIfSpectatorsCanChat

bool GameFilterConfigs::showOnlyIfSpectatorsCanChat = false

◆ showOnlyIfSpectatorsCanSeeHands

bool GameFilterConfigs::showOnlyIfSpectatorsCanSeeHands = false

◆ showOnlyIfSpectatorsCanWatch

bool GameFilterConfigs::showOnlyIfSpectatorsCanWatch = false

◆ showSpectatorPasswordProtected

bool GameFilterConfigs::showSpectatorPasswordProtected = false

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