summaryrefslogtreecommitdiff
path: root/noncore/games/sfcave/sfcave.h
authorandyq <andyq>2002-12-07 18:07:27 (UTC)
committer andyq <andyq>2002-12-07 18:07:27 (UTC)
commit25debd07f03e4a1b21047ee5d49a3dd811d8352a (patch) (side-by-side diff)
treec25eaa7d0423e733772412bf097e1ab577362fc0 /noncore/games/sfcave/sfcave.h
parent2e00687f66fadd9cc4c0f564b5f8ba108084d619 (diff)
downloadopie-25debd07f03e4a1b21047ee5d49a3dd811d8352a.zip
opie-25debd07f03e4a1b21047ee5d49a3dd811d8352a.tar.gz
opie-25debd07f03e4a1b21047ee5d49a3dd811d8352a.tar.bz2
Added dificculty levels to Fly and Gates, bug fixes (height checking), added help menu option and other features
Diffstat (limited to 'noncore/games/sfcave/sfcave.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/sfcave/sfcave.h26
1 files changed, 22 insertions, 4 deletions
diff --git a/noncore/games/sfcave/sfcave.h b/noncore/games/sfcave/sfcave.h
index b19d147..69a0e13 100644
--- a/noncore/games/sfcave/sfcave.h
+++ b/noncore/games/sfcave/sfcave.h
@@ -28,14 +28,25 @@ public:
int speed;
int crashLineLength;
+ static double UpThrustVals[3][3];
+ static double DownThrustVals[3][3];
+ static double MaxUpThrustVals[3][3];
+ static double MaxDownThrustVals[3][3];
+ static int initialGateGaps[];
+
+ double thrustUp;
+ double noThrust;
+ double maxUpThrust;
+ double maxDownThrust;
+
int gateDistance;
int nextGate;
int lastGateBottomY;
static QString menuOptions[2][5];
int currentMenuNr;
- int nrMenuOptions[2];
- int currentMenuOption[2];
+ static int nrMenuOptions[2];
+ static int currentMenuOption[2];
static QString dificultyOption[3];
static QString gameTypes[3];
@@ -46,7 +57,7 @@ public:
QTimer *gameTimer;
int score;
- int highestScore[3];
+ int highestScore[3][3];
int mapTop[MAPSIZE];
int mapBottom[MAPSIZE];
@@ -59,7 +70,7 @@ public:
int nrFrames;
int dir;
- bool bossMode;
+ bool showScoreZones;
bool press;
double thrust;
@@ -70,6 +81,12 @@ public:
void start();
int nextInt( int range );
void setUp();
+ void handleGameSFCave();
+ void handleGameGates();
+ void handleGameFly();
+ bool checkFlyGameCollision();
+ void moveFlyGameLandscape();
+ void setFlyPoint( int point );
bool checkCollision();
void moveLandscape();
void addBlock();
@@ -84,6 +101,7 @@ public:
void keyPressEvent( QKeyEvent *e );
void keyReleaseEvent( QKeyEvent *e );
+ void saveScore();
private slots:
void run();