Changeset 5972 in orxonox.OLD for branches/network/src/util/loading/game_loader.h
- Timestamp:
- Dec 7, 2005, 4:59:24 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/util/loading/game_loader.h
r5819 r5972 40 40 { 41 41 42 42 43 public: 43 44 ~GameLoader (); 44 45 45 static GameLoader* getInstance(); 46 /** this class is a singleton class @returns an instance of itself */ 47 static GameLoader* getInstance() { if(singletonRef == NULL) singletonRef = new GameLoader(); return singletonRef; } 46 48 47 49 ErrorMessage init(); 48 ErrorMessage loadCampaign(const char* name);49 50 ErrorMessage start(); 50 51 void stop(); … … 56 57 void previousLevel(); 57 58 58 /** \brief a world command to send to the GameLoader @param cmd the command */59 bool worldCommand(Command* cmd);60 59 ErrorMessage loadDebugCampaign(Uint32 campaignID); 60 ErrorMessage loadCampaign(const char* name); 61 ErrorMessage loadNetworkCampaign(const char* name); 62 61 63 62 64 void registerFactory( Factory* factory ); … … 65 67 void process(const Event &event); 66 68 69 67 70 private: 68 71 GameLoader (); … … 70 73 Campaign* fileToCampaign(const char* name); 71 74 75 72 76 private: 73 77 static GameLoader* singletonRef; //!< The singleton-reference to this object
Note: See TracChangeset
for help on using the changeset viewer.