Last change
on this file since 2101 was
2100,
checked in by chris, 20 years ago
|
orxonox/branches/chris: First part of the "Getittocompile"-Project
|
File size:
1.2 KB
|
Line | |
---|
1 | |
---|
2 | #ifndef ORXONOX_H |
---|
3 | #define ORXONOX_H |
---|
4 | |
---|
5 | #include <SDL/SDL.h> |
---|
6 | |
---|
7 | #include "stdincl.h" |
---|
8 | |
---|
9 | class CommandNode; |
---|
10 | class WorldEntity; |
---|
11 | class DataTank; |
---|
12 | class World; |
---|
13 | class Camera; |
---|
14 | |
---|
15 | class Orxonox { |
---|
16 | |
---|
17 | private: |
---|
18 | static Orxonox* singleton_ref; |
---|
19 | Orxonox (); |
---|
20 | ~Orxonox (); |
---|
21 | |
---|
22 | static char configfilename[256]; |
---|
23 | static World* world; |
---|
24 | static DataTank* resources; |
---|
25 | static CommandNode* localinput; |
---|
26 | static Camera* localcamera; |
---|
27 | static SDL_Surface* screen; |
---|
28 | |
---|
29 | static bool bQuitOrxonox; |
---|
30 | static bool pause; |
---|
31 | static Uint32 lastframe; |
---|
32 | |
---|
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 (); |
---|
49 | |
---|
50 | public: |
---|
51 | static Orxonox* getInstance (); |
---|
52 | static void quitGame(); |
---|
53 | |
---|
54 | static void event_handler (SDL_Event* event); |
---|
55 | |
---|
56 | int init (int argc, char** argv); |
---|
57 | |
---|
58 | CommandNode* get_localinput(); |
---|
59 | Camera* get_camera(); |
---|
60 | World* get_world(); |
---|
61 | |
---|
62 | void mainLoop(); |
---|
63 | }; |
---|
64 | |
---|
65 | #endif |
---|
66 | |
---|
Note: See
TracBrowser
for help on using the repository browser.