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