12863
|
1 |
#ifndef GAMECONFIG_H
|
|
2 |
#define GAMECONFIG_H
|
|
3 |
|
12864
|
4 |
#include <QList>
|
|
5 |
#include <QVector>
|
12863
|
6 |
|
12868
|
7 |
#include "team.h"
|
|
8 |
|
12864
|
9 |
class GameConfig {
|
12863
|
10 |
public:
|
12864
|
11 |
explicit GameConfig();
|
|
12 |
|
|
13 |
const char** argv() const;
|
|
14 |
int argc() const;
|
12865
|
15 |
const QList<QByteArray> config() const;
|
12863
|
16 |
|
12864
|
17 |
void clear();
|
|
18 |
void cmdSeed(const QByteArray& seed);
|
12868
|
19 |
void cmdTheme(const QByteArray& theme);
|
12864
|
20 |
void cmdMapgen(int mapgen);
|
12868
|
21 |
void cmdTeam(const Team& team);
|
12863
|
22 |
|
12868
|
23 |
bool isPreview() const;
|
|
24 |
void setPreview(bool isPreview);
|
12866
|
25 |
|
12864
|
26 |
private:
|
|
27 |
mutable QVector<const char*> m_argv;
|
|
28 |
QList<QByteArray> m_arguments;
|
|
29 |
QList<QByteArray> m_cfg;
|
12868
|
30 |
QList<Team> m_teams;
|
|
31 |
bool m_isPreview;
|
12864
|
32 |
|
|
33 |
void cfgAppend(const QByteArray& cmd);
|
12863
|
34 |
};
|
|
35 |
|
12864
|
36 |
#endif // GAMECONFIG_H
|