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