source:
orxonox.OLD/orxonox/trunk/src/orxonox.h
@
3173
Last change on this file since 3173 was 3022, checked in by bensch, 20 years ago | |
---|---|
File size: 1.3 KB |
Rev | Line | |
---|---|---|
[2190] | 1 | /*! |
2 | \file orxonox.h | |
3 | \brief Orxonox core functions | |
4 | */ | |
[1856] | 5 | |
[1803] | 6 | #ifndef ORXONOX_H |
7 | #define ORXONOX_H | |
8 | ||
[3022] | 9 | // this includes the information from configure/makefiles |
10 | #if HAVE_CONFIG_H | |
11 | #include <config.h> | |
12 | #endif | |
13 | ||
[2190] | 14 | #include "stdincl.h" |
15 | ||
16 | class CommandNode; | |
17 | class WorldEntity; | |
18 | class DataTank; | |
[2036] | 19 | class World; |
[2190] | 20 | class Camera; |
[2636] | 21 | class GameLoader; |
[1850] | 22 | |
[2190] | 23 | //! Orxonox core singleton class |
24 | /** | |
25 | */ | |
[1803] | 26 | class Orxonox { |
27 | ||
[1850] | 28 | private: |
[1872] | 29 | static Orxonox* singleton_ref; |
[1850] | 30 | Orxonox (); |
31 | ~Orxonox (); | |
[2190] | 32 | |
33 | char configfilename[256]; | |
34 | World* world; | |
35 | DataTank* resources; | |
36 | CommandNode* localinput; | |
37 | Camera* localcamera; | |
38 | SDL_Surface* screen; | |
[2636] | 39 | GameLoader* gameLoader; |
[2190] | 40 | |
41 | bool bQuitOrxonox; | |
42 | bool pause; | |
[2636] | 43 | Uint32 lastframe; |
44 | ||
45 | void get_config_file (int argc, char** argv); | |
46 | ||
47 | // main loop functions | |
[2190] | 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 (); | |
[2636] | 64 | void start(); |
[2190] | 65 | void quitGame(); |
[1879] | 66 | |
[2190] | 67 | void event_handler (SDL_Event* event); |
68 | bool system_command (Command* cmd); | |
[1897] | 69 | |
[2190] | 70 | int init (int argc, char** argv); |
[2636] | 71 | |
72 | CommandNode* get_localinput(); | |
73 | Camera* get_camera(); | |
74 | World* get_world(); | |
75 | ||
[2190] | 76 | void mainLoop(); |
[1803] | 77 | }; |
78 | ||
79 | #endif | |
[1850] | 80 |
Note: See TracBrowser
for help on using the repository browser.