|
Last change
on this file since 4773 was
4768,
checked in by bensch, 20 years ago
|
|
orxonox/trunk: ini-parser small cleanup char* → const char*
|
|
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 | |
|---|
| [4408] | 9 | #include "event_listener.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 | */ |
|---|
| [4408] | 22 | class Orxonox : public EventListener { |
|---|
| [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 | |
|---|
| 33 | void graphicsHandler (SDL_Event* event); |
|---|
| 34 | void process(const Event &event); |
|---|
| 35 | |
|---|
| [1850] | 36 | private: |
|---|
| [4447] | 37 | Orxonox (); |
|---|
| 38 | |
|---|
| [4766] | 39 | void parseIniFile(const char* fileName); |
|---|
| 40 | |
|---|
| [4445] | 41 | int initVideo (); |
|---|
| 42 | int initSound (); |
|---|
| 43 | int initInput (); |
|---|
| 44 | int initNetworking (); |
|---|
| 45 | int initResources (); |
|---|
| 46 | |
|---|
| [4766] | 47 | const char* getConfigFile (int argc, char** argv); |
|---|
| [4446] | 48 | |
|---|
| [4445] | 49 | private: |
|---|
| [4447] | 50 | static Orxonox* singletonRef; //!< singleton reference to orxonox |
|---|
| [3543] | 51 | |
|---|
| [4766] | 52 | IniParser* iniParser; //!< Reference to the ini-parser used in orxonox |
|---|
| 53 | char configFileName[256]; //!< Filename of the configuration-file. |
|---|
| [4447] | 54 | GameLoader* gameLoader; //!< The gameLoader |
|---|
| 55 | ResourceManager* resourceManager; //!< The ResourceManager |
|---|
| 56 | ObjectManager* objectManager; //!< the object manager of the game |
|---|
| 57 | EventHandler* eventHandler; //!< the eventhandler of orxonox is created here |
|---|
| [4766] | 58 | |
|---|
| [4447] | 59 | unsigned int argc; //!< Count of Arguments of orxonox |
|---|
| 60 | char** argv; //!< Values of th Arguments of orxonox. |
|---|
| [1803] | 61 | }; |
|---|
| 62 | |
|---|
| [4447] | 63 | |
|---|
| 64 | |
|---|
| 65 | |
|---|
| [4132] | 66 | int startHelp(int argc, char** argv); |
|---|
| [3648] | 67 | int startOrxonox(int argc, char** argv); |
|---|
| 68 | |
|---|
| [3224] | 69 | #endif /* _ORXONOX_H */ |
|---|
| [1850] | 70 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.