source:
orxonox.OLD/orxonox/trunk/src/orxonox.h
@
4924
Last change on this file since 4924 was 4866, checked in by bensch, 19 years ago | |
---|---|
File size: 1.4 KB |
Rev | Line | |
---|---|---|
[4766] | 1 | /*! |
[2190] | 2 | \file orxonox.h |
[4836] | 3 | * Orxonox core functions |
[4766] | 4 | */ |
[1856] | 5 | |
[3224] | 6 | #ifndef _ORXONOX_H |
7 | #define _ORXONOX_H | |
[1803] | 8 | |
[4817] | 9 | #include "base_object.h" |
[2190] | 10 | |
11 | class WorldEntity; | |
[2636] | 12 | class GameLoader; |
[4766] | 13 | class IniParser; |
[1850] | 14 | |
[4768] | 15 | //! orxonox core singleton class |
[2190] | 16 | /** |
17 | */ | |
[4817] | 18 | class Orxonox : public BaseObject { |
[1803] | 19 | |
[4445] | 20 | public: |
21 | virtual ~Orxonox (); | |
[4836] | 22 | /** @returns a Pointer to the only object of this Class */ |
[4766] | 23 | inline static Orxonox* getInstance() { if (!singletonRef) singletonRef = new Orxonox(); return singletonRef; }; |
24 | ||
[4445] | 25 | int init (int argc, char** argv); |
26 | ||
27 | void start(); | |
28 | ||
[4817] | 29 | //void graphicsHandler (SDL_Event* event); |
[4445] | 30 | |
[1850] | 31 | private: |
[4447] | 32 | Orxonox (); |
33 | ||
[4766] | 34 | void parseIniFile(const char* fileName); |
35 | ||
[4445] | 36 | int initVideo (); |
37 | int initSound (); | |
38 | int initInput (); | |
39 | int initNetworking (); | |
40 | int initResources (); | |
41 | ||
[4830] | 42 | const char* getConfigFile (); |
[4446] | 43 | |
[4445] | 44 | private: |
[4447] | 45 | static Orxonox* singletonRef; //!< singleton reference to orxonox |
[3543] | 46 | |
[4766] | 47 | IniParser* iniParser; //!< Reference to the ini-parser used in orxonox |
[4830] | 48 | char* configFileName; //!< Filename of the configuration-file. |
[4447] | 49 | GameLoader* gameLoader; //!< The gameLoader |
[4766] | 50 | |
[4447] | 51 | unsigned int argc; //!< Count of Arguments of orxonox |
52 | char** argv; //!< Values of th Arguments of orxonox. | |
[1803] | 53 | }; |
54 | ||
[4447] | 55 | |
56 | ||
57 | ||
[4132] | 58 | int startHelp(int argc, char** argv); |
[3648] | 59 | int startOrxonox(int argc, char** argv); |
60 | ||
[3224] | 61 | #endif /* _ORXONOX_H */ |
[1850] | 62 |
Note: See TracBrowser
for help on using the repository browser.