source:
orxonox.OLD/orxonox/trunk/src/orxonox.h
@
3009
Last change on this file since 3009 was 2995, checked in by bensch, 20 years ago | |
---|---|
File size: 1.2 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 | ||
[2190] | 9 | #include "stdincl.h" |
10 | ||
11 | class CommandNode; | |
12 | class WorldEntity; | |
13 | class DataTank; | |
[2036] | 14 | class World; |
[2190] | 15 | class Camera; |
[2636] | 16 | class GameLoader; |
[1850] | 17 | |
[2190] | 18 | //! Orxonox core singleton class |
19 | /** | |
20 | */ | |
[1803] | 21 | class Orxonox { |
22 | ||
[1850] | 23 | private: |
[1872] | 24 | static Orxonox* singleton_ref; |
[1850] | 25 | Orxonox (); |
26 | ~Orxonox (); | |
[2190] | 27 | |
28 | char configfilename[256]; | |
29 | World* world; | |
30 | DataTank* resources; | |
31 | CommandNode* localinput; | |
32 | Camera* localcamera; | |
33 | SDL_Surface* screen; | |
[2636] | 34 | GameLoader* gameLoader; |
[2190] | 35 | |
36 | bool bQuitOrxonox; | |
37 | bool pause; | |
[2636] | 38 | Uint32 lastframe; |
39 | ||
40 | void get_config_file (int argc, char** argv); | |
41 | ||
42 | // main loop functions | |
[2190] | 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 (); | |
[2636] | 59 | void start(); |
[2190] | 60 | void quitGame(); |
[1879] | 61 | |
[2190] | 62 | void event_handler (SDL_Event* event); |
63 | bool system_command (Command* cmd); | |
[1897] | 64 | |
[2190] | 65 | int init (int argc, char** argv); |
[2636] | 66 | |
67 | CommandNode* get_localinput(); | |
68 | Camera* get_camera(); | |
69 | World* get_world(); | |
70 | ||
[2190] | 71 | void mainLoop(); |
[1803] | 72 | }; |
73 | ||
74 | #endif | |
[1850] | 75 |
Note: See TracBrowser
for help on using the repository browser.