source:
orxonox.OLD/orxonox/trunk/src/orxonox.h
@
2780
Last change on this file since 2780 was 2636, checked in by patrick, 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 <SDL/SDL.h> |
10 | ||
11 | #include "stdincl.h" | |
12 | ||
13 | class CommandNode; | |
14 | class WorldEntity; | |
15 | class DataTank; | |
[2036] | 16 | class World; |
[2190] | 17 | class Camera; |
[2636] | 18 | class GameLoader; |
[1850] | 19 | |
[2190] | 20 | //! Orxonox core singleton class |
21 | /** | |
22 | */ | |
[1803] | 23 | class Orxonox { |
24 | ||
[1850] | 25 | private: |
[1872] | 26 | static Orxonox* singleton_ref; |
[1850] | 27 | Orxonox (); |
28 | ~Orxonox (); | |
[2190] | 29 | |
30 | char configfilename[256]; | |
31 | World* world; | |
32 | DataTank* resources; | |
33 | CommandNode* localinput; | |
34 | Camera* localcamera; | |
35 | SDL_Surface* screen; | |
[2636] | 36 | GameLoader* gameLoader; |
[2190] | 37 | |
38 | bool bQuitOrxonox; | |
39 | bool pause; | |
[2636] | 40 | Uint32 lastframe; |
41 | ||
42 | void get_config_file (int argc, char** argv); | |
43 | ||
44 | // main loop functions | |
[2190] | 45 | void synchronize (); |
46 | void handle_input (); | |
47 | void time_slice (); | |
48 | void collision (); | |
49 | void display (); | |
50 | ||
51 | // subsystem initialization | |
52 | int init_video (); | |
53 | int init_sound (); | |
54 | int init_input (); | |
55 | int init_networking (); | |
56 | int init_resources (); | |
57 | int init_world (); | |
58 | ||
59 | public: | |
60 | static Orxonox* getInstance (); | |
[2636] | 61 | void start(); |
[2190] | 62 | void quitGame(); |
[1879] | 63 | |
[2190] | 64 | void event_handler (SDL_Event* event); |
65 | bool system_command (Command* cmd); | |
[1897] | 66 | |
[2190] | 67 | int init (int argc, char** argv); |
[2636] | 68 | |
69 | CommandNode* get_localinput(); | |
70 | Camera* get_camera(); | |
71 | World* get_world(); | |
72 | ||
[2190] | 73 | void mainLoop(); |
[1803] | 74 | }; |
75 | ||
76 | #endif | |
[1850] | 77 |
Note: See TracBrowser
for help on using the repository browser.