Diffstat (limited to 'noncore/games/sfcave/sfcave.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/sfcave/sfcave.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/noncore/games/sfcave/sfcave.h b/noncore/games/sfcave/sfcave.h index 69a0e13..0d9a626 100644 --- a/noncore/games/sfcave/sfcave.h +++ b/noncore/games/sfcave/sfcave.h | |||
@@ -4,13 +4,16 @@ | |||
4 | #include <qpoint.h> | 4 | #include <qpoint.h> |
5 | #include <qrect.h> | 5 | #include <qrect.h> |
6 | #include <qtimer.h> | 6 | #include <qtimer.h> |
7 | #include <qlist.h> | ||
7 | 8 | ||
8 | 9 | #include "random.h" | |
9 | 10 | ||
10 | #define MAPSIZE 52 | 11 | #define MAPSIZE 52 |
11 | #define BLOCKSIZE 6 | 12 | #define BLOCKSIZE 6 |
12 | #define TRAILSIZE 30 | 13 | #define TRAILSIZE 30 |
13 | 14 | ||
15 | |||
16 | |||
14 | class SFCave : public QMainWindow | 17 | class SFCave : public QMainWindow |
15 | { | 18 | { |
16 | Q_OBJECT | 19 | Q_OBJECT |
@@ -20,6 +23,12 @@ public: | |||
20 | int sHeight; | 23 | int sHeight; |
21 | int segSize; | 24 | int segSize; |
22 | 25 | ||
26 | int currentSeed; | ||
27 | |||
28 | QList<int> replayList; | ||
29 | QListIterator<int> *replayIt; | ||
30 | bool replay; | ||
31 | |||
23 | int blockWidth; | 32 | int blockWidth; |
24 | int blockHeight; | 33 | int blockHeight; |
25 | int gapHeight; | 34 | int gapHeight; |
@@ -79,6 +88,7 @@ public: | |||
79 | SFCave( int speed = 3, QWidget *p = 0, char *name = 0 ); | 88 | SFCave( int speed = 3, QWidget *p = 0, char *name = 0 ); |
80 | ~SFCave(); | 89 | ~SFCave(); |
81 | void start(); | 90 | void start(); |
91 | void setSeed( int seed ); | ||
82 | int nextInt( int range ); | 92 | int nextInt( int range ); |
83 | void setUp(); | 93 | void setUp(); |
84 | void handleGameSFCave(); | 94 | void handleGameSFCave(); |