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