Changeset 7256 in orxonox.OLD for trunk/src/orxonox.h
- Timestamp:
- Mar 30, 2006, 11:45:31 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/orxonox.h
r7221 r7256 11 11 class WorldEntity; 12 12 class GameLoader; 13 class IniParser;14 13 15 14 //! orxonox core singleton class … … 23 22 inline static Orxonox* getInstance() { if (!singletonRef) singletonRef = new Orxonox(); return singletonRef; }; 24 23 25 int init(int argc, char** argv, const char*name, int port);24 int init(int argc, char** argv, const std::string & name, int port); 26 25 27 26 void restart(); … … 31 30 private: 32 31 Orxonox (); 33 34 void parseIniFile(const std::string& fileName);35 32 36 33 int initResources (); … … 46 43 static Orxonox* singletonRef; //!< singleton reference to orxonox 47 44 48 IniParser* iniParser; //!< Reference to the ini-parser used in orxonox49 45 std::string configFileName; //!< Filename of the configuration-file. 50 46 GameLoader* gameLoader; //!< The gameLoader … … 53 49 char** argv; //!< Values of th Arguments of orxonox. 54 50 55 const char* serverName; //!< Name of the Orxonox client if == NULL-> server51 std::string serverName; //!< Name of the Orxonox client if == "" -> server 56 52 int port; //!< number of the network port of the server/client if == -1 no network 57 53 }; … … 61 57 // Start-up functions // 62 58 //////////////////////// 63 int showHelp(int argc, char** argv); 64 int showLicense(); 59 65 60 int startNetworkOrxonox(int argc, char** argv); 66 int startOrxonox(int argc, char** argv, const char*clientName, int port);61 int startOrxonox(int argc, char** argv, const std::string & clientName, int port); 67 62 68 63 #endif /* _ORXONOX_H */
Note: See TracChangeset
for help on using the changeset viewer.