Last change
on this file since 2066 was
2058,
checked in by chris, 21 years ago
|
orxonox/branches/chris: Trunk remerged into my branch started on SDL reconfiguration
|
File size:
1.2 KB
|
Rev | Line | |
---|
[1856] | 1 | |
---|
[1803] | 2 | #ifndef ORXONOX_H |
---|
| 3 | #define ORXONOX_H |
---|
| 4 | |
---|
[2058] | 5 | #include <SDL/SDL.h> |
---|
[1850] | 6 | |
---|
[2058] | 7 | class World; |
---|
| 8 | class InputOutput; |
---|
| 9 | class Player; |
---|
[1872] | 10 | |
---|
[1896] | 11 | |
---|
[1803] | 12 | class Orxonox { |
---|
| 13 | |
---|
[1850] | 14 | private: |
---|
[1872] | 15 | static Orxonox* singleton_ref; |
---|
[1850] | 16 | Orxonox (); |
---|
| 17 | ~Orxonox (); |
---|
[1872] | 18 | static World* world; |
---|
| 19 | static InputOutput* io; |
---|
[1896] | 20 | static Player* localPlayer; |
---|
[2058] | 21 | static bool bQuitOrxonox; |
---|
[1872] | 22 | static bool pause; |
---|
[1900] | 23 | static bool inputEnabled; |
---|
[1875] | 24 | static bool upWeGo; |
---|
| 25 | static bool downWeGo; |
---|
| 26 | static bool rightWeGo; |
---|
| 27 | static bool leftWeGo; |
---|
[1896] | 28 | static bool shoot1; |
---|
[1897] | 29 | static int fps; |
---|
[1850] | 30 | |
---|
[1879] | 31 | static int alpha; |
---|
| 32 | static int beta; |
---|
| 33 | static int offsetX; |
---|
| 34 | static int offsetY; |
---|
| 35 | |
---|
[1897] | 36 | static void timeSlice(int value); |
---|
| 37 | |
---|
[2058] | 38 | static SDL_Surface* screen; |
---|
| 39 | |
---|
[1803] | 40 | public: |
---|
[1850] | 41 | static Orxonox* getInstance (void); |
---|
[1803] | 42 | |
---|
[1850] | 43 | int globalInit (int argc, char** argv); |
---|
| 44 | int menuInit (void); |
---|
| 45 | int gameInit (void); |
---|
[2058] | 46 | |
---|
| 47 | void mainLoop(); |
---|
| 48 | |
---|
[1872] | 49 | void testTheShit(void); |
---|
[1850] | 50 | static void display (void); |
---|
[1872] | 51 | static void continousRedraw(void); |
---|
[1850] | 52 | static void reshape (int w, int h); |
---|
[1858] | 53 | static void keyboard(unsigned char key, int x, int y); |
---|
[1896] | 54 | static void upKeyboard(unsigned char key, int x, int y); |
---|
[1875] | 55 | static void releaseKey(int key, int x, int y); |
---|
[1859] | 56 | static void specFunc(int key, int x, int y); |
---|
[1875] | 57 | static void quitGame(void); |
---|
[1803] | 58 | }; |
---|
| 59 | |
---|
| 60 | #endif |
---|
[1850] | 61 | |
---|
Note: See
TracBrowser
for help on using the repository browser.