summaryrefslogtreecommitdiff
path: root/noncore/games/kbill/Game.h
Unidiff
Diffstat (limited to 'noncore/games/kbill/Game.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/games/kbill/Game.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/games/kbill/Game.h b/noncore/games/kbill/Game.h
index 4473936..5c9c497 100644
--- a/noncore/games/kbill/Game.h
+++ b/noncore/games/kbill/Game.h
@@ -1,55 +1,55 @@
1#ifndef GAME_H 1#ifndef GAME_H
2#define GAME_H 2#define GAME_H
3 3
4#include "objects.h" 4#include "objects.h"
5 5
6class Game { 6class Game {
7 unsigned state; 7 int state;
8 int efficiency; 8 int efficiency;
9public: 9public:
10 unsigned score, level, iteration; 10 unsigned score, level, iteration;
11 Picture logo; 11 Picture logo;
12 int grabbed; 12 int grabbed;
13 13
14 static const unsigned short scrwidth = 240; 14 static const unsigned short scrwidth = 240;
15 static const unsigned short scrheight = 290; 15 static const unsigned short scrheight = 290;
16 16
17 static const int PLAYING = 1; 17 static const int PLAYING = 1;
18 static const int BETWEEN = 2; 18 static const int BETWEEN = 2;
19 static const int END = 3; 19 static const int END = 3;
20 static const int WAITING = 4; 20 static const int WAITING = 4;
21 21
22 static const int DEFAULTC = 0; /* cursors */ 22 static const int DEFAULTC = 0; /* cursors */
23 static const int DOWNC = -1; 23 static const int DOWNC = -1;
24 static const int BUCKETC = -2; 24 static const int BUCKETC = -2;
25 25
26 static const int ENDGAME = 200; /* dialog window IDs */ 26 static const int ENDGAME = 200; /* dialog window IDs */
27 static const int ENTERNAME = 201; 27 static const int ENTERNAME = 201;
28 static const int HIGHSCORE = 202; 28 static const int HIGHSCORE = 202;
29 static const int SCORE = 203; 29 static const int SCORE = 203;
30 30
31 static const int ENDLEVEL = -1; /* Codes for updating score */ 31 static const int ENDLEVEL = -1; /* Codes for updating score */
32 static const int BILLPOINTS = 5; 32 static const int BILLPOINTS = 5;
33 33
34 static const int EMPTY = -2; /* Grabbed object */ 34 static const int EMPTY = -2; /* Grabbed object */
35 static const int BUCKET = -1; 35 static const int BUCKET = -1;
36 36
37 int RAND(int lb, int ub); 37 int RAND(int lb, int ub);
38 int MAX(int x, int y); 38 int MAX(int x, int y);
39 int MIN(int x, int y); 39 int MIN(int x, int y);
40 int INTERSECT(int x1, int y1, int w1, int h1, int x2, int y2, int w2, 40 int INTERSECT(int x1, int y1, int w1, int h1, int x2, int y2, int w2,
41 int h2); 41 int h2);
42 42
43 void setup_level (unsigned int lev); 43 void setup_level (unsigned int lev);
44 void start(unsigned int lev); 44 void start(unsigned int lev);
45 void quit(); 45 void quit();
46 void update_info(); 46 void update_info();
47 void update_score (int action); 47 void update_score (int action);
48 void warp_to_level (unsigned int lev); 48 void warp_to_level (unsigned int lev);
49 void button_press(int x, int y); 49 void button_press(int x, int y);
50 void button_release(int x, int y); 50 void button_release(int x, int y);
51 void update(); 51 void update();
52 void main(int argc, char **argv); 52 void main(int argc, char **argv);
53}; 53};
54 54
55#endif 55#endif