Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Game.h

Go to the documentation of this file.
00001 #ifndef GAME_H
00002 #define GAME_H
00003 
00004 #include "objects.h"
00005 
00006 class Game {
00007         int state;
00008         int efficiency;
00009 public:
00010         unsigned score, level, iteration;
00011         Picture logo;
00012         int grabbed;
00013 
00014         static const unsigned short scrwidth = 240;
00015         static const unsigned short scrheight = 290;
00016 
00017         static const int PLAYING = 1;
00018         static const int BETWEEN = 2;
00019         static const int END = 3;
00020         static const int WAITING = 4;
00021 
00022         static const int DEFAULTC = 0;          /* cursors */
00023         static const int DOWNC = -1;
00024         static const int BUCKETC = -2;
00025 
00026         static const int ENDGAME = 200;         /* dialog window IDs */
00027         static const int ENTERNAME = 201;
00028         static const int HIGHSCORE = 202;
00029         static const int SCORE = 203;
00030 
00031         static const int ENDLEVEL = -1;         /* Codes for updating score */
00032         static const int BILLPOINTS = 5;
00033 
00034         static const int EMPTY = -2;            /* Grabbed object */
00035         static const int BUCKET = -1;
00036 
00037         int RAND(int lb, int ub);
00038         int MAX(int x, int y);
00039         int MIN(int x, int y);
00040         int INTERSECT(int x1, int y1, int w1, int h1, int x2, int y2, int w2,
00041                 int h2);
00042 
00043         void setup_level (unsigned int lev);
00044         void start(unsigned int lev);
00045         void quit();
00046         void update_info();
00047         void update_score (int action);
00048         void warp_to_level (unsigned int lev);
00049         void button_press(int x, int y);
00050         void button_release(int x, int y);
00051         void update();
00052         void main(int argc, char **argv);
00053 };
00054 
00055 #endif

Generated on Sat Nov 5 16:17:19 2005 for OPIE by  doxygen 1.4.2