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