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










