Changeset 4766 in orxonox.OLD for orxonox/trunk/src/orxonox.h
- Timestamp:
- Jul 2, 2005, 11:54:41 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/orxonox.h
r4447 r4766 1 /*! 1 /*! 2 2 \file orxonox.h 3 3 \brief Orxonox core functions 4 */ 4 */ 5 5 6 6 #ifndef _ORXONOX_H … … 15 15 class EventHandler; 16 16 class Event; 17 class IniParser; 17 18 18 19 //! Orxonox core singleton class … … 22 23 23 24 public: 24 static Orxonox* getInstance ();25 25 virtual ~Orxonox (); 26 /** \returns a Pointer to the only object of this Class */ 27 inline static Orxonox* getInstance() { if (!singletonRef) singletonRef = new Orxonox(); return singletonRef; }; 28 26 29 int init (int argc, char** argv); 27 30 … … 34 37 Orxonox (); 35 38 39 void parseIniFile(const char* fileName); 40 36 41 int initVideo (); 37 42 int initSound (); … … 40 45 int initResources (); 41 46 42 voidgetConfigFile (int argc, char** argv);47 const char* getConfigFile (int argc, char** argv); 43 48 44 49 private: 45 50 static Orxonox* singletonRef; //!< singleton reference to orxonox 46 51 47 char configfilename[256]; //!< Filename of the configuration-file. 52 IniParser* iniParser; //!< Reference to the ini-parser used in orxonox 53 char configFileName[256]; //!< Filename of the configuration-file. 48 54 GameLoader* gameLoader; //!< The gameLoader 49 55 ResourceManager* resourceManager; //!< The ResourceManager 50 56 ObjectManager* objectManager; //!< the object manager of the game 51 57 EventHandler* eventHandler; //!< the eventhandler of orxonox is created here 52 58 53 59 unsigned int argc; //!< Count of Arguments of orxonox 54 60 char** argv; //!< Values of th Arguments of orxonox.
Note: See TracChangeset
for help on using the changeset viewer.