summaryrefslogtreecommitdiff
path: root/noncore/games/sfcave/sfcave.h
Unidiff
Diffstat (limited to 'noncore/games/sfcave/sfcave.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/games/sfcave/sfcave.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/noncore/games/sfcave/sfcave.h b/noncore/games/sfcave/sfcave.h
index b1fe819..7bdf881 100644
--- a/noncore/games/sfcave/sfcave.h
+++ b/noncore/games/sfcave/sfcave.h
@@ -74,51 +74,57 @@ public:
74 74
75 QPixmap *offscreen; 75 QPixmap *offscreen;
76 QTimer *gameTimer; 76 QTimer *gameTimer;
77 77
78 int score; 78 int score;
79 int highestScore[3][3]; 79 int highestScore[3][3];
80 80
81 int mapTop[MAPSIZE]; 81 int mapTop[MAPSIZE];
82 int mapBottom[MAPSIZE]; 82 int mapBottom[MAPSIZE];
83 QRect blocks[BLOCKSIZE]; 83 QRect blocks[BLOCKSIZE];
84 QRect user; 84 QRect user;
85 QPoint trail[TRAILSIZE]; 85 QPoint trail[TRAILSIZE];
86 86
87 int offset; 87 int offset;
88 int maxHeight; 88 int maxHeight;
89 int nrFrames; 89 int nrFrames;
90 int dir; 90 int dir;
91 91
92 bool showScoreZones; 92 bool showScoreZones;
93 93
94 bool press; 94 bool press;
95 double thrust; 95 double thrust;
96 bool running; 96 bool running;
97 97
98 SFCave( int speed = 3, QWidget *p = 0, char *name = 0 ); 98 SFCave( QWidget *p = 0, const char *name = 0, WFlags fl = 0 );
99 ~SFCave(); 99 ~SFCave();
100
101 static QString appName() { return QString::fromLatin1( QUICKAPP_NAME ); }
102
103public slots:
100 void start(); 104 void start();
105public:
106
101 void setSeed( int seed ); 107 void setSeed( int seed );
102 int nextInt( int range ); 108 int nextInt( int range );
103 void setUp(); 109 void setUp();
104 void handleGameSFCave(); 110 void handleGameSFCave();
105 void handleGameGates(); 111 void handleGameGates();
106 void handleGameFly(); 112 void handleGameFly();
107 bool checkFlyGameCollision(); 113 bool checkFlyGameCollision();
108 void moveFlyGameLandscape(); 114 void moveFlyGameLandscape();
109 void setFlyPoint( int point ); 115 void setFlyPoint( int point );
110 bool checkCollision(); 116 bool checkCollision();
111 void moveLandscape(); 117 void moveLandscape();
112 void addBlock(); 118 void addBlock();
113 void addGate(); 119 void addGate();
114 void setPoint( int point ); 120 void setPoint( int point );
115 void drawBoss(); 121 void drawBoss();
116 void draw(); 122 void draw();
117 void handleKeys(); 123 void handleKeys();
118 124
119 void handleMenuKeys( QKeyEvent * e ); 125 void handleMenuKeys( QKeyEvent * e );
120 void displayMenu(); 126 void displayMenu();
121 void dealWithMenuSelection(); 127 void dealWithMenuSelection();
122 128
123 void keyPressEvent( QKeyEvent *e ); 129 void keyPressEvent( QKeyEvent *e );
124 void keyReleaseEvent( QKeyEvent *e ); 130 void keyReleaseEvent( QKeyEvent *e );