Last change
on this file since 2009 was
1977,
checked in by bensch, 20 years ago
|
orxonox/branches/gui: updated from trunk with 'svn merge -r 1860 [trunkdir] .'
|
File size:
1.2 KB
|
Rev | Line | |
---|
[1856] | 1 | |
---|
| 2 | |
---|
[1872] | 3 | |
---|
[1803] | 4 | #ifndef ORXONOX_H |
---|
| 5 | #define ORXONOX_H |
---|
| 6 | |
---|
[1872] | 7 | /* standard headers */ |
---|
| 8 | #include <iostream> |
---|
| 9 | #include <cstdio> |
---|
[1850] | 10 | |
---|
[1872] | 11 | /* openGL Headers */ |
---|
| 12 | #include <GL/glut.h> |
---|
| 13 | |
---|
[1896] | 14 | |
---|
| 15 | #include "environment.h" |
---|
[1872] | 16 | #include "world.h" |
---|
| 17 | #include "input_output.h" |
---|
| 18 | #include "data_tank.h" |
---|
| 19 | #include "stdincl.h" |
---|
[1896] | 20 | #include "player.h" |
---|
[1872] | 21 | |
---|
| 22 | |
---|
[1803] | 23 | class Orxonox { |
---|
| 24 | |
---|
[1850] | 25 | private: |
---|
[1872] | 26 | static Orxonox* singleton_ref; |
---|
[1850] | 27 | Orxonox (); |
---|
| 28 | ~Orxonox (); |
---|
[1872] | 29 | static World* world; |
---|
| 30 | static InputOutput* io; |
---|
[1896] | 31 | static Player* localPlayer; |
---|
[1872] | 32 | static bool pause; |
---|
[1900] | 33 | static bool inputEnabled; |
---|
[1875] | 34 | static bool upWeGo; |
---|
| 35 | static bool downWeGo; |
---|
| 36 | static bool rightWeGo; |
---|
| 37 | static bool leftWeGo; |
---|
[1896] | 38 | static bool shoot1; |
---|
[1897] | 39 | static int fps; |
---|
[1850] | 40 | |
---|
[1879] | 41 | static int alpha; |
---|
| 42 | static int beta; |
---|
| 43 | static int offsetX; |
---|
| 44 | static int offsetY; |
---|
| 45 | |
---|
[1897] | 46 | static void timeSlice(int value); |
---|
| 47 | |
---|
[1803] | 48 | public: |
---|
| 49 | |
---|
[1850] | 50 | static Orxonox* getInstance (void); |
---|
[1803] | 51 | |
---|
[1850] | 52 | int globalInit (int argc, char** argv); |
---|
| 53 | int menuInit (void); |
---|
| 54 | int gameInit (void); |
---|
[1872] | 55 | void testTheShit(void); |
---|
[1850] | 56 | static void display (void); |
---|
[1872] | 57 | static void continousRedraw(void); |
---|
[1850] | 58 | static void reshape (int w, int h); |
---|
[1858] | 59 | static void keyboard(unsigned char key, int x, int y); |
---|
[1896] | 60 | static void upKeyboard(unsigned char key, int x, int y); |
---|
[1875] | 61 | static void releaseKey(int key, int x, int y); |
---|
[1859] | 62 | static void specFunc(int key, int x, int y); |
---|
[1875] | 63 | static void quitGame(void); |
---|
[1803] | 64 | }; |
---|
| 65 | |
---|
| 66 | #endif |
---|
[1850] | 67 | |
---|
Note: See
TracBrowser
for help on using the repository browser.