Last change
on this file since 2080 was
2036,
checked in by patrick, 21 years ago
|
orxonxo/trunk/src: extended framework: class inheritance, right including (had som bugs), framework not finished yet
|
File size:
1.1 KB
|
Rev | Line | |
---|
[1856] | 1 | |
---|
[1803] | 2 | #ifndef ORXONOX_H |
---|
| 3 | #define ORXONOX_H |
---|
| 4 | |
---|
[2036] | 5 | class World; |
---|
| 6 | class InputOutput; |
---|
| 7 | class Player; |
---|
[1850] | 8 | |
---|
[1872] | 9 | |
---|
[1803] | 10 | class Orxonox { |
---|
| 11 | |
---|
[1850] | 12 | private: |
---|
[1872] | 13 | static Orxonox* singleton_ref; |
---|
[1850] | 14 | Orxonox (); |
---|
| 15 | ~Orxonox (); |
---|
[1872] | 16 | static World* world; |
---|
| 17 | static InputOutput* io; |
---|
[1896] | 18 | static Player* localPlayer; |
---|
[1872] | 19 | static bool pause; |
---|
[1900] | 20 | static bool inputEnabled; |
---|
[1875] | 21 | static bool upWeGo; |
---|
| 22 | static bool downWeGo; |
---|
| 23 | static bool rightWeGo; |
---|
| 24 | static bool leftWeGo; |
---|
[1896] | 25 | static bool shoot1; |
---|
[1897] | 26 | static int fps; |
---|
[1850] | 27 | |
---|
[1879] | 28 | static int alpha; |
---|
| 29 | static int beta; |
---|
| 30 | static int offsetX; |
---|
| 31 | static int offsetY; |
---|
| 32 | |
---|
[1897] | 33 | static void timeSlice(int value); |
---|
| 34 | |
---|
[1803] | 35 | public: |
---|
[1850] | 36 | static Orxonox* getInstance (void); |
---|
[1803] | 37 | |
---|
[1850] | 38 | int globalInit (int argc, char** argv); |
---|
| 39 | int menuInit (void); |
---|
| 40 | int gameInit (void); |
---|
[1872] | 41 | void testTheShit(void); |
---|
[1850] | 42 | static void display (void); |
---|
[1872] | 43 | static void continousRedraw(void); |
---|
[1850] | 44 | static void reshape (int w, int h); |
---|
[1858] | 45 | static void keyboard(unsigned char key, int x, int y); |
---|
[1896] | 46 | static void upKeyboard(unsigned char key, int x, int y); |
---|
[1875] | 47 | static void releaseKey(int key, int x, int y); |
---|
[1859] | 48 | static void specFunc(int key, int x, int y); |
---|
[1875] | 49 | static void quitGame(void); |
---|
[1803] | 50 | }; |
---|
| 51 | |
---|
| 52 | #endif |
---|
[1850] | 53 | |
---|
Note: See
TracBrowser
for help on using the repository browser.