source:
orxonox.OLD/orxonox/branches/physics/src/orxonox.h
@
4289
Last change on this file since 4289 was 4283, checked in by bensch, 20 years ago | |
---|---|
File size: 1.6 KB |
Rev | Line | |
---|---|---|
[2190] | 1 | /*! |
2 | \file orxonox.h | |
3 | \brief Orxonox core functions | |
4 | */ | |
[1856] | 5 | |
[3224] | 6 | #ifndef _ORXONOX_H |
7 | #define _ORXONOX_H | |
[1803] | 8 | |
[3608] | 9 | #include "comincl.h" |
10 | #include "glincl.h" | |
[2190] | 11 | |
12 | class CommandNode; | |
13 | class WorldEntity; | |
[2036] | 14 | class World; |
[2190] | 15 | class Camera; |
[2636] | 16 | class GameLoader; |
[3655] | 17 | class ResourceManager; |
[1850] | 18 | |
[2190] | 19 | //! Orxonox core singleton class |
20 | /** | |
21 | */ | |
[1803] | 22 | class Orxonox { |
23 | ||
[1850] | 24 | private: |
[3226] | 25 | static Orxonox* singletonRef; |
[1850] | 26 | Orxonox (); |
[3543] | 27 | |
[3449] | 28 | char configfilename[256]; //!< Filename of the configuration-file. |
29 | World* world; //!< Reference to the current running world. | |
30 | CommandNode* localinput; //!< Command Handler | |
31 | SDL_Surface* screen; //!< The current Screen | |
32 | GameLoader* gameLoader; //!< The gameLoader | |
[3655] | 33 | ResourceManager* resourceManager; //!< The ResourceManager |
[2190] | 34 | |
[3449] | 35 | bool bQuitOrxonox; //!< If Orxonox should Quit |
36 | bool pause; //!< Pause mode | |
37 | Uint32 lastframe; //!< Time of the last Frame | |
[2636] | 38 | |
[4178] | 39 | unsigned int argc; //!< Count of Arguments of orxonox |
40 | char** argv; //!< Values of th Arguments of orxonox. | |
41 | ||
[3226] | 42 | void getConfigFile (int argc, char** argv); |
[2636] | 43 | |
[4178] | 44 | // subsystem initialization |
[3226] | 45 | int initVideo (); |
46 | int initSound (); | |
47 | int initInput (); | |
48 | int initNetworking (); | |
49 | int initResources (); | |
50 | int initWorld (); | |
[2190] | 51 | |
52 | public: | |
53 | static Orxonox* getInstance (); | |
[3660] | 54 | virtual ~Orxonox (); |
55 | ||
[2636] | 56 | void start(); |
[2190] | 57 | void quitGame(); |
[1879] | 58 | |
[3226] | 59 | void eventHandler (SDL_Event* event); |
60 | bool systemCommand (Command* cmd); | |
[1897] | 61 | |
[2190] | 62 | int init (int argc, char** argv); |
[2636] | 63 | |
[3226] | 64 | CommandNode* getLocalInput(); |
65 | World* getWorld(); | |
[3365] | 66 | SDL_Surface* getScreen (); |
[2636] | 67 | |
[3214] | 68 | //void mainLoop(); |
[1803] | 69 | }; |
70 | ||
[4178] | 71 | int startHelp(int argc, char** argv); |
[3648] | 72 | int startOrxonox(int argc, char** argv); |
73 | ||
[3224] | 74 | #endif /* _ORXONOX_H */ |
[1850] | 75 |
Note: See TracBrowser
for help on using the repository browser.