-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeck.h
More file actions
48 lines (35 loc) · 877 Bytes
/
Copy pathdeck.h
File metadata and controls
48 lines (35 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef DECK_H
#define DECK_H
#include <QtCore>
#include "config.h"
#include "card.h"
class Deck {
public:
Deck(QString deckString, const Config& config, QString version);
QString player_name;
QString player_level;
QString player_deckname;
QString player_id;
QString version;
QString string;
QString faction;
QString country;
QString type;
QString era;
QString game_mode;
uint transport2;
uint transport1;
uint nfaction;
uint ncountry;
QHash<QString, QList<Card>> units;
operator QString() const { return string; }
private:
const Config& conf;
uint bitCursor=0;
QByteArray deckBytes;
uint getBits( const QByteArray& array, uint from, uint to );
uint getInt(uint size);
QString getLookup(uint size, QMap<uint, QString> lookup );
void getDeck();
};
#endif // DECK_H