Last change
on this file since 3173 was
3022,
checked in by bensch, 20 years ago
|
orxonox/trunk/src: Version-information added to captions
|
File size:
1.3 KB
|
Line | |
---|
1 | /*! |
---|
2 | \file orxonox.h |
---|
3 | \brief Orxonox core functions |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef ORXONOX_H |
---|
7 | #define ORXONOX_H |
---|
8 | |
---|
9 | // this includes the information from configure/makefiles |
---|
10 | #if HAVE_CONFIG_H |
---|
11 | #include <config.h> |
---|
12 | #endif |
---|
13 | |
---|
14 | #include "stdincl.h" |
---|
15 | |
---|
16 | class CommandNode; |
---|
17 | class WorldEntity; |
---|
18 | class DataTank; |
---|
19 | class World; |
---|
20 | class Camera; |
---|
21 | class GameLoader; |
---|
22 | |
---|
23 | //! Orxonox core singleton class |
---|
24 | /** |
---|
25 | */ |
---|
26 | class Orxonox { |
---|
27 | |
---|
28 | private: |
---|
29 | static Orxonox* singleton_ref; |
---|
30 | Orxonox (); |
---|
31 | ~Orxonox (); |
---|
32 | |
---|
33 | char configfilename[256]; |
---|
34 | World* world; |
---|
35 | DataTank* resources; |
---|
36 | CommandNode* localinput; |
---|
37 | Camera* localcamera; |
---|
38 | SDL_Surface* screen; |
---|
39 | GameLoader* gameLoader; |
---|
40 | |
---|
41 | bool bQuitOrxonox; |
---|
42 | bool pause; |
---|
43 | Uint32 lastframe; |
---|
44 | |
---|
45 | void get_config_file (int argc, char** argv); |
---|
46 | |
---|
47 | // main loop functions |
---|
48 | void synchronize (); |
---|
49 | void handle_input (); |
---|
50 | void time_slice (); |
---|
51 | void collision (); |
---|
52 | void display (); |
---|
53 | |
---|
54 | // subsystem initialization |
---|
55 | int init_video (); |
---|
56 | int init_sound (); |
---|
57 | int init_input (); |
---|
58 | int init_networking (); |
---|
59 | int init_resources (); |
---|
60 | int init_world (); |
---|
61 | |
---|
62 | public: |
---|
63 | static Orxonox* getInstance (); |
---|
64 | void start(); |
---|
65 | void quitGame(); |
---|
66 | |
---|
67 | void event_handler (SDL_Event* event); |
---|
68 | bool system_command (Command* cmd); |
---|
69 | |
---|
70 | int init (int argc, char** argv); |
---|
71 | |
---|
72 | CommandNode* get_localinput(); |
---|
73 | Camera* get_camera(); |
---|
74 | World* get_world(); |
---|
75 | |
---|
76 | void mainLoop(); |
---|
77 | }; |
---|
78 | |
---|
79 | #endif |
---|
80 | |
---|
Note: See
TracBrowser
for help on using the repository browser.