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