#include <hostmodetraits.h>
Public Member Functions | |
HostModeTraits (GameCreateParams::HostMode mode=GameCreateParams::Host) | |
bool | canChangeAnyGameRules () const |
bool | canChangeGame () const |
bool | canChangeMode () const |
bool | canRecordDemo () const |
bool | canShowCommandLine () const |
QString | cfgName () const |
bool | isCreatingServer () const |
bool | isSettingUpOnlineGame () const |
operator GameCreateParams::HostMode () const | |
HostModeTraits & | operator= (GameCreateParams::HostMode mode) |
Static Public Member Functions | |
static HostModeTraits | fromCfgName (const QString &name) |
Public Attributes | |
GameCreateParams::HostMode | mode |
UI-related feature checker for GameCreateParams::HostMode.
Definition at line 31 of file hostmodetraits.h.
|
inline |
Is changing the game allowed for this hosting mode?
Definition at line 83 of file hostmodetraits.h.
|
inline |
Can we switch the UI dynamically from this mode to another?
Definition at line 92 of file hostmodetraits.h.
|
inline |
Does this mode allow to setup demo recording?
Definition at line 101 of file hostmodetraits.h.
|
inline |
Can a launch command line be generated in this mode?
Definition at line 109 of file hostmodetraits.h.
|
inline |
Map the GameCreateParams::HostMode to a name saveable in a config.
Definition at line 54 of file hostmodetraits.h.
|
inlinestatic |
Create HostMode from a config name (cfgName()).
Definition at line 43 of file hostmodetraits.h.
|
inline |
Are we launching a brand-new game server?
Definition at line 117 of file hostmodetraits.h.
|
inline |
Are we setting up an online game (our own server or an existing one)?
Definition at line 125 of file hostmodetraits.h.