23 #ifndef __SERVER_STRUCTS_H_ 24 #define __SERVER_STRUCTS_H_ 62 DMFlag(
const QString &internalName,
unsigned value);
63 DMFlag(
const QString &internalName,
unsigned value,
const QString &name);
72 const QString &internalName()
const;
85 const QString &name()
const;
90 unsigned value()
const;
145 static QList<DMFlagsSection> removedBySection(
146 const QList<DMFlagsSection> &original,
147 const QList<DMFlagsSection> &removals);
176 void add(
const DMFlag& flag);
183 unsigned combineValues()
const;
201 const QString &internalName()
const;
206 bool isEmpty()
const;
212 const QString &name()
const;
216 const DMFlag &operator[](
int index)
const;
217 DMFlag &operator[](
int index);
253 GameCVar(
const QString &name,
const QString &command);
254 GameCVar(
const QString &name,
const QString &command,
const QVariant &value);
264 const QString &command()
const;
269 bool hasValue()
const;
273 bool isValid()
const;
279 const QString &name()
const;
284 void setValue(
const QVariant& value);
289 const QVariant &value()
const;
290 QString valueString()
const {
return value().toString(); }
291 bool valueBool()
const {
return value().toBool(); }
292 int valueInt()
const {
return value().toInt(); }
321 virtual QList<GameCVar>
get(
const QVariant &context);
360 SGM_Cooperative = 900,
361 SGM_Deathmatch = 901,
362 SGM_TeamDeathmatch = 902,
393 static GameMode ffaGame(
int index,
const QString &name);
404 static GameMode teamGame(
int index,
const QString &name);
422 const QString &name()
const;
427 bool isTeamGame()
const;
431 bool isValid()
const;
436 GameMode(
int index,
const QString &name);
438 void setTeamGame(
bool b);
452 PWad(
const QString &name,
bool optional=
false);
458 bool isOptional()
const;
462 const QString& name()
const;
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().
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).