qmlfrontend/gameconfig.h
author unc0rr
Sun, 24 Dec 2017 16:56:22 +0100
branchqmlfrontend
changeset 12859 a03f245243b0
parent 12858 0c6fb706f747
child 12860 e33bcb9d5e9c
permissions -rw-r--r--
And more refactoring...
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12858
0c6fb706f747 More refactoring in attempt to move away from frontlib
unc0rr
parents:
diff changeset
     1
#ifndef GAMECONFIG_H
0c6fb706f747 More refactoring in attempt to move away from frontlib
unc0rr
parents:
diff changeset
     2
#define GAMECONFIG_H
0c6fb706f747 More refactoring in attempt to move away from frontlib
unc0rr
parents:
diff changeset
     3
12859
a03f245243b0 And more refactoring...
unc0rr
parents: 12858
diff changeset
     4
#include <QList>
a03f245243b0 And more refactoring...
unc0rr
parents: 12858
diff changeset
     5
#include <QVector>
12858
0c6fb706f747 More refactoring in attempt to move away from frontlib
unc0rr
parents:
diff changeset
     6
12859
a03f245243b0 And more refactoring...
unc0rr
parents: 12858
diff changeset
     7
class GameConfig {
12858
0c6fb706f747 More refactoring in attempt to move away from frontlib
unc0rr
parents:
diff changeset
     8
public:
12859
a03f245243b0 And more refactoring...
unc0rr
parents: 12858
diff changeset
     9
    explicit GameConfig();
a03f245243b0 And more refactoring...
unc0rr
parents: 12858
diff changeset
    10
a03f245243b0 And more refactoring...
unc0rr
parents: 12858
diff changeset
    11
    const char** argv() const;
a03f245243b0 And more refactoring...
unc0rr
parents: 12858
diff changeset
    12
    int argc() const;
a03f245243b0 And more refactoring...
unc0rr
parents: 12858
diff changeset
    13
    const QList<QByteArray> config();
12858
0c6fb706f747 More refactoring in attempt to move away from frontlib
unc0rr
parents:
diff changeset
    14
12859
a03f245243b0 And more refactoring...
unc0rr
parents: 12858
diff changeset
    15
    void clear();
a03f245243b0 And more refactoring...
unc0rr
parents: 12858
diff changeset
    16
    void cmdSeed(const QByteArray& seed);
a03f245243b0 And more refactoring...
unc0rr
parents: 12858
diff changeset
    17
    void cmdMapgen(int mapgen);
12858
0c6fb706f747 More refactoring in attempt to move away from frontlib
unc0rr
parents:
diff changeset
    18
12859
a03f245243b0 And more refactoring...
unc0rr
parents: 12858
diff changeset
    19
private:
a03f245243b0 And more refactoring...
unc0rr
parents: 12858
diff changeset
    20
    mutable QVector<const char*> m_argv;
a03f245243b0 And more refactoring...
unc0rr
parents: 12858
diff changeset
    21
    QList<QByteArray> m_arguments;
a03f245243b0 And more refactoring...
unc0rr
parents: 12858
diff changeset
    22
    QList<QByteArray> m_cfg;
a03f245243b0 And more refactoring...
unc0rr
parents: 12858
diff changeset
    23
a03f245243b0 And more refactoring...
unc0rr
parents: 12858
diff changeset
    24
    void cfgAppend(const QByteArray& cmd);
12858
0c6fb706f747 More refactoring in attempt to move away from frontlib
unc0rr
parents:
diff changeset
    25
};
0c6fb706f747 More refactoring in attempt to move away from frontlib
unc0rr
parents:
diff changeset
    26
12859
a03f245243b0 And more refactoring...
unc0rr
parents: 12858
diff changeset
    27
#endif // GAMECONFIG_H