-
Notifications
You must be signed in to change notification settings - Fork 0
/
qttd.h
81 lines (70 loc) · 1.68 KB
/
qttd.h
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#ifndef QTTD_H
#define QTTD_H
#include <QtGui/QMainWindow>
#include <QtGui/QGraphicsScene>
#include <QtGui/QGraphicsView>
//Forward declaration
class QtTDContext;
class QtTDGameBoard;
class QtTD : public QMainWindow
{
Q_OBJECT
public:
QtTD(QWidget *parent = 0);
~QtTD();
void paintBoard();
private:
QtTDGameBoard *gameBoard;
QGraphicsView *view;
QtTDContext *context;
QImage layer0; // Cache image for the background
QImage layer1; // Cache image for the hexes
//
QString backgroundDefault;
bool clearLayer0;
bool clearLayer1;
bool drawBackground;
//
int boardWidth, boardHeight;
//
//QVector<QtTDTower> towers;
//BlackBox blackBoxRecord;
//BlackBox blackBoxPlayback;
// bool autoLaunch = false;
// bool startWave = false;
// bool startWaveDelayed = false;
// bool waveReady = true;
// bool placingTower = false;
//
//TowerFactory.type placingTowerType;
//
qreal placingTowerRange;
int graceTicks;
int graceTicksMax;
int paintTime;
//
//Object paintTimeLock = new Object();
//Object paintLock = new Object();
bool painting;
//bool noSleep = false;
//bool noPaint = false;
//
// int tickTime = 50;
// int tickTimeSkip = 0;
// int tickTimeFast = 15;
// int tickTimeNormal = 50;
// bool paused = false;
// bool gameStopped = false;
// QVector<int> highlightedHex;
// int lastPaddedLeft = -1;
//
//static DecimalFormat form = new DecimalFormat("#,###.##");
//
//URL scorePostUrl;
//URL scoreFetchUrl;
int score_id;
QString mode;
//QThread gameLogicThread;
//bool running = true;
};
#endif // QTTD_H