Changeset 5974 in orxonox.OLD for branches/network/src/util/loading/game_loader.h
- Timestamp:
- Dec 7, 2005, 5:13:00 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/util/loading/game_loader.h
r5972 r5974 40 40 { 41 41 42 42 43 43 public: 44 44 ~GameLoader (); … … 46 46 /** this class is a singleton class @returns an instance of itself */ 47 47 static GameLoader* getInstance() { if(singletonRef == NULL) singletonRef = new GameLoader(); return singletonRef; } 48 49 void registerFactory( Factory* factory ); 50 BaseObject* fabricate(const TiXmlElement* data); 48 51 49 52 ErrorMessage init(); … … 54 57 ErrorMessage destroy(); 55 58 59 ErrorMessage loadDebugCampaign(Uint32 campaignID); 60 ErrorMessage loadCampaign(const char* name); 61 ErrorMessage loadNetworkCampaign(const char* name); 62 63 void process(const Event &event); 64 56 65 void nextLevel(); 57 66 void previousLevel(); 58 67 59 ErrorMessage loadDebugCampaign(Uint32 campaignID);60 ErrorMessage loadCampaign(const char* name);61 ErrorMessage loadNetworkCampaign(const char* name);62 63 68 64 void registerFactory( Factory* factory );65 BaseObject* fabricate(const TiXmlElement* data);66 67 void process(const Event &event);68 69 70 69 private: 71 70 GameLoader (); … … 73 72 Campaign* fileToCampaign(const char* name); 74 73 75 74 76 75 private: 77 76 static GameLoader* singletonRef; //!< The singleton-reference to this object 78 79 Uint32 startTime; //!< start time of the campaign80 bool isPaused; //!< if the game is paused81 82 77 Campaign* currentCampaign; //!< reference to the current campaign playing 83 78 84 EventHandler* eventHandler; //!< reference to the eventHandler79 bool isPaused; //!< if the game is paused 85 80 }; 86 81
Note: See TracChangeset
for help on using the changeset viewer.