source:
orxonox.OLD/orxonox/branches/chris/src/orxonox.h
@
2080
Last change on this file since 2080 was 2068, checked in by chris, 20 years ago | |
---|---|
File size: 1.0 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; |
[1872] | 8 | |
[1803] | 9 | class Orxonox { |
10 | ||
[1850] | 11 | private: |
[1872] | 12 | static Orxonox* singleton_ref; |
[1850] | 13 | Orxonox (); |
14 | ~Orxonox (); | |
[2068] | 15 | |
16 | static char configfilename[256]; | |
[1872] | 17 | static World* world; |
[2068] | 18 | static DataTank* resources; |
19 | static CommandNode* localinput; | |
20 | static Camera* localcamera; | |
21 | static SDL_Surface* screen; | |
22 | ||
[2058] | 23 | static bool bQuitOrxonox; |
[1872] | 24 | static bool pause; |
[2068] | 25 | static Uint32 lastframe; |
[1850] | 26 | |
[2068] | 27 | static void get_config_file (int argc, char** argv); |
28 | ||
29 | // main loop functions | |
30 | static void synchronize (); | |
31 | static void handle_input (); | |
32 | static void time_slice (); | |
33 | static void collision (); | |
34 | static void display (); | |
35 | ||
36 | // subsystem initialization | |
37 | int init_video (); | |
38 | int init_sound (); | |
39 | int init_input (); | |
40 | int init_networking (); | |
41 | int init_resources (); | |
42 | int init_world (); | |
[1879] | 43 | |
[2068] | 44 | static void event_handler (SDL_Event* event); |
[2058] | 45 | |
[1803] | 46 | public: |
[2068] | 47 | static Orxonox* getInstance (); |
48 | static void quitGame(); | |
[1803] | 49 | |
[2068] | 50 | int init (int argc, char** argv); |
51 | ||
52 | Camera* get_camera(); | |
53 | World* get_world(); | |
54 | ||
[2058] | 55 | void mainLoop(); |
[1803] | 56 | }; |
57 | ||
58 | #endif | |
[1850] | 59 |
Note: See TracBrowser
for help on using the repository browser.