23 #ifndef __SERVER_STRUCTS_H_
24 #define __SERVER_STRUCTS_H_
56 DMFlag(QString name,
unsigned value);
69 const QString& name()
const;
73 unsigned value()
const;
100 void add(
const DMFlag& flag);
107 unsigned combineValues()
const;
112 bool isEmpty()
const;
117 const QString &name()
const;
121 const DMFlag &operator[](
int index)
const;
122 DMFlag &operator[](
int index);
148 GameCVar(
const QString &name,
const QString &command);
158 const QString &command()
const;
163 bool hasValue()
const;
167 bool isValid()
const;
173 const QString &name()
const;
178 void setValue(
const QVariant& value);
183 const QVariant &value()
const;
184 QString valueString()
const {
return value().toString(); }
185 bool valueBool()
const {
return value().toBool(); }
186 int valueInt()
const {
return value().toInt(); }
223 SGM_Cooperative = 900,
224 SGM_Deathmatch = 901,
225 SGM_TeamDeathmatch = 902,
256 static GameMode ffaGame(
int index,
const QString &name);
267 static GameMode teamGame(
int index,
const QString &name);
285 const QString &name()
const;
290 bool isTeamGame()
const;
294 bool isValid()
const;
299 GameMode(
int index,
const QString &name);
301 void setTeamGame(
bool b);
315 PWad(
const QString &name,
bool optional=
false);
321 bool isOptional()
const;
325 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).