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