23 #ifndef __SERVER_STRUCTS_H_ 24 #define __SERVER_STRUCTS_H_ 63 DMFlag(
const QString &internalName,
unsigned value);
64 DMFlag(
const QString &internalName,
unsigned value,
const QString &name);
73 const QString &internalName()
const;
86 const QString &name()
const;
91 unsigned value()
const;
146 static QList<DMFlagsSection> removedBySection(
147 const QList<DMFlagsSection> &original,
148 const QList<DMFlagsSection> &removals);
177 void add(
const DMFlag& flag);
184 unsigned combineValues()
const;
202 const QString &internalName()
const;
207 bool isEmpty()
const;
213 const QString &name()
const;
217 const DMFlag &operator[](
int index)
const;
218 DMFlag &operator[](
int index);
254 GameCVar(
const QString &name,
const QString &command);
255 GameCVar(
const QString &name,
const QString &command,
const QVariant &value);
265 const QString &command()
const;
270 bool hasValue()
const;
274 bool isValid()
const;
280 const QString &name()
const;
285 void setValue(
const QVariant& value);
290 const QVariant &value()
const;
291 QString valueString()
const {
return value().toString(); }
292 bool valueBool()
const {
return value().toBool(); }
293 int valueInt()
const {
return value().toInt(); }
322 virtual QList<GameCVar>
get(
const QVariant &context);
381 SGM_Cooperative = 900,
382 SGM_Deathmatch = 901,
383 SGM_TeamDeathmatch = 902,
414 static GameMode ffaGame(
int index,
const QString &name);
425 static GameMode teamGame(
int index,
const QString &name);
443 const QString &name()
const;
448 bool isTeamGame()
const;
452 bool isValid()
const;
459 void setTeamGame(
bool b);
473 PWad(
const QString &name,
bool optional=
false);
479 bool isOptional()
const;
483 const QString& name()
const;
500 static const unsigned char UNDEFINED = CHAR_MAX;
A group of DMFlag objects that can be safely OR'ed together to form a meaningful value.
A game setting that is a part of a group of settings that can be OR'ed logically as a single integer...
DMFlagsSection & operator<<(const DMFlag &flag)
Stream input operator that appends DMFlag to the collection, same as add().
int gamemode_id
Unique identifier of a GameMode within the plugin.
Game mode representation.
StandardGameMode
These game modes are so common that Doomseeker represents them through internal values and static met...
A general game setting or variable (like fraglimit).