From b9a448e0687558c1cb79f801161966e15d589132 Mon Sep 17 00:00:00 2001 From: andyq Date: Mon, 09 Dec 2002 20:30:46 +0000 Subject: Added replay function and included own random method for replay functionality --- (limited to 'noncore/games/sfcave/sfcave.h') 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 @@ #include #include #include +#include - +#include "random.h" #define MAPSIZE 52 #define BLOCKSIZE 6 #define TRAILSIZE 30 + + class SFCave : public QMainWindow { Q_OBJECT @@ -20,6 +23,12 @@ public: int sHeight; int segSize; + int currentSeed; + + QList replayList; + QListIterator *replayIt; + bool replay; + int blockWidth; int blockHeight; int gapHeight; @@ -79,6 +88,7 @@ public: SFCave( int speed = 3, QWidget *p = 0, char *name = 0 ); ~SFCave(); void start(); + void setSeed( int seed ); int nextInt( int range ); void setUp(); void handleGameSFCave(); -- cgit v0.9.0.2