#include <serverstructs.h>
Public Types | |
| enum | StandardGameModeIndexes { SGMICooperative = 900, SGMIDeathmatch = 901, SGMITeamDeathmatch = 902, SGMICTF = 903, SGMIUnknown = 904 } |
Public Member Functions | |
| GameMode (int index, const QString &name, bool teamgame) | |
| int | modeIndex () const |
| const QString & | name () const |
| bool | isTeamGame () const |
Static Public Attributes | |
| static const GameMode | COOPERATIVE |
| static const GameMode | DEATHMATCH |
| static const GameMode | TEAM_DEATHMATCH |
| static const GameMode | CAPTURE_THE_FLAG |
| static const GameMode | UNKNOWN |
Protected Attributes | |
| int | gameModeIndex |
| QString | modeName |
| bool | teamgame |
Data structure that holds information about a servers game mode.
| GameMode::GameMode | ( | int | index, |
| const QString & | name, | ||
| bool | teamgame | ||
| ) |
| name | Name to display for game mode, this should be fairly short about no longer than "cooperative". |