23 #ifndef __SERVER_STRUCTS_H_ 24 #define __SERVER_STRUCTS_H_ 27 #include <QCryptographicHash> 66 DMFlag(
const QString &internalName,
unsigned value);
67 DMFlag(
const QString &internalName,
unsigned value,
const QString &name);
78 const QString &internalName()
const;
91 const QString &name()
const;
96 unsigned value()
const;
151 static QList<DMFlagsSection> removedBySection(
152 const QList<DMFlagsSection> &original,
153 const QList<DMFlagsSection> &removals);
184 void add(
const DMFlag &flag);
191 unsigned combineValues()
const;
209 const QString &internalName()
const;
214 bool isEmpty()
const;
220 const QString &name()
const;
224 const DMFlag &operator[](
int index)
const;
225 DMFlag &operator[](
int index);
261 GameCVar(
const QString &name,
const QString &command);
262 GameCVar(
const QString &name,
const QString &command,
const QVariant &value);
274 const QString &command()
const;
279 bool hasValue()
const;
283 bool isValid()
const;
289 const QString &name()
const;
294 void setValue(
const QVariant &value);
299 const QVariant &value()
const;
300 QString valueString()
const {
return value().toString(); }
301 bool valueBool()
const {
return value().toBool(); }
302 int valueInt()
const {
return value().toInt(); }
331 virtual QList<GameCVar>
get(
const QVariant &context);
390 SGM_Cooperative = 900,
391 SGM_Deathmatch = 901,
392 SGM_TeamDeathmatch = 902,
423 static GameMode ffaGame(
int index,
const QString &name);
434 static GameMode teamGame(
int index,
const QString &name);
454 const QString &name()
const;
459 bool isTeamGame()
const;
463 bool isValid()
const;
470 void setTeamGame(
bool b);
484 PWad(
const QString &name,
bool optional =
false);
485 PWad(
const QString &name,
bool optional,
const QList<Checksum> &checksums);
486 PWad(
const ModFile &modFile);
495 bool isOptional()
const;
499 const QString &name()
const;
503 const QList<Checksum> checksums()
const;
510 void addChecksum(
const QByteArray &hash,
const QCryptographicHash::Algorithm &algorithm);
516 bool validFile(
const QString &path)
const;
532 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().
Game mode representation.
StandardGameMode
These game modes are so common that Doomseeker represents them through internal values and static met...
int gamemode_id
Unique identifier of a GameMode within the plugin.
A general game setting or variable (like fraglimit).