-rw-r--r-- | noncore/games/sfcave/sfcave.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/noncore/games/sfcave/sfcave.h b/noncore/games/sfcave/sfcave.h index 0d9a626..238a615 100644 --- a/noncore/games/sfcave/sfcave.h +++ b/noncore/games/sfcave/sfcave.h | |||
@@ -15,32 +15,33 @@ | |||
15 | 15 | ||
16 | 16 | ||
17 | class SFCave : public QMainWindow | 17 | class SFCave : public QMainWindow |
18 | { | 18 | { |
19 | Q_OBJECT | 19 | Q_OBJECT |
20 | 20 | ||
21 | public: | 21 | public: |
22 | int sWidth; | 22 | int sWidth; |
23 | int sHeight; | 23 | int sHeight; |
24 | int segSize; | 24 | int segSize; |
25 | 25 | ||
26 | int currentSeed; | 26 | int currentSeed; |
27 | 27 | ||
28 | QList<int> replayList; | 28 | QList<int> replayList; |
29 | QListIterator<int> *replayIt; | 29 | QListIterator<int> *replayIt; |
30 | bool replay; | 30 | bool replay; |
31 | QString replayFile; | ||
31 | 32 | ||
32 | int blockWidth; | 33 | int blockWidth; |
33 | int blockHeight; | 34 | int blockHeight; |
34 | int gapHeight; | 35 | int gapHeight; |
35 | int state; | 36 | int state; |
36 | int prevState; | 37 | int prevState; |
37 | int speed; | 38 | int speed; |
38 | int crashLineLength; | 39 | int crashLineLength; |
39 | 40 | ||
40 | static double UpThrustVals[3][3]; | 41 | static double UpThrustVals[3][3]; |
41 | static double DownThrustVals[3][3]; | 42 | static double DownThrustVals[3][3]; |
42 | static double MaxUpThrustVals[3][3]; | 43 | static double MaxUpThrustVals[3][3]; |
43 | static double MaxDownThrustVals[3][3]; | 44 | static double MaxDownThrustVals[3][3]; |
44 | static int initialGateGaps[]; | 45 | static int initialGateGaps[]; |
45 | 46 | ||
46 | double thrustUp; | 47 | double thrustUp; |
@@ -99,20 +100,22 @@ public: | |||
99 | void setFlyPoint( int point ); | 100 | void setFlyPoint( int point ); |
100 | bool checkCollision(); | 101 | bool checkCollision(); |
101 | void moveLandscape(); | 102 | void moveLandscape(); |
102 | void addBlock(); | 103 | void addBlock(); |
103 | void addGate(); | 104 | void addGate(); |
104 | void setPoint( int point ); | 105 | void setPoint( int point ); |
105 | void drawBoss(); | 106 | void drawBoss(); |
106 | void draw(); | 107 | void draw(); |
107 | void handleKeys(); | 108 | void handleKeys(); |
108 | 109 | ||
109 | void displayMenu(); | 110 | void displayMenu(); |
110 | void dealWithMenuSelection(); | 111 | void dealWithMenuSelection(); |
111 | 112 | ||
112 | void keyPressEvent( QKeyEvent *e ); | 113 | void keyPressEvent( QKeyEvent *e ); |
113 | void keyReleaseEvent( QKeyEvent *e ); | 114 | void keyReleaseEvent( QKeyEvent *e ); |
114 | void saveScore(); | 115 | void saveScore(); |
116 | void saveReplay(); | ||
117 | void loadReplay(); | ||
115 | 118 | ||
116 | private slots: | 119 | private slots: |
117 | void run(); | 120 | void run(); |
118 | }; | 121 | }; |