Changeset 6372 in orxonox.OLD for branches/network
- Timestamp:
- Dec 31, 2005, 2:41:02 PM (19 years ago)
- Location:
- branches/network/src/story_entities
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/story_entities/campaign.cc
r6371 r6372 126 126 127 127 //se->preLoad(); 128 se->load ();128 se->loadData(); 129 129 //se->postLoad(); 130 130 -
branches/network/src/story_entities/campaign.h
r6371 r6372 10 10 class TiXmlElement; 11 11 12 class Campaign : public StoryEntity { 12 class Campaign : public StoryEntity 13 { 13 14 14 public:15 Campaign ();16 Campaign ( TiXmlElement* root);17 virtual ~Campaign ();15 public: 16 Campaign (); 17 Campaign ( TiXmlElement* root); 18 virtual ~Campaign (); 18 19 19 void loadParams(const TiXmlElement* root);20 void loadWorldListParams(const TiXmlElement* root);20 void loadParams(const TiXmlElement* root); 21 void loadWorldListParams(const TiXmlElement* root); 21 22 22 StoryEntity* currentEntity; 23 virtual ErrorMessage init(); 24 virtual ErrorMessage start(); 25 virtual ErrorMessage start(int storyID); 26 virtual ErrorMessage pause(); 27 virtual ErrorMessage resume(); 28 virtual ErrorMessage stop(); 23 29 24 virtual ErrorMessage init(); 25 virtual ErrorMessage start(); 26 virtual ErrorMessage start(int storyID); 27 virtual ErrorMessage pause(); 28 virtual ErrorMessage resume(); 29 virtual ErrorMessage stop(); 30 void addEntity(StoryEntity* se, int storyID); 31 void addEntity(StoryEntity* se); 32 void removeEntity(int storyID); 33 void removeEntity(StoryEntity* se); 30 34 31 void addEntity(StoryEntity* se, int storyID); 32 void addEntity(StoryEntity* se); 33 void removeEntity(int storyID); 34 void removeEntity(StoryEntity* se); 35 void nextLevel(); 36 void previousLevel(); 35 37 36 void nextLevel();37 void previousLevel();38 38 39 private: 40 //ListTemplate<StoryEntity>* entities; 41 std::list<StoryEntity*> entities; 42 bool running; 39 private: 40 StoryEntity* getStoryEntity(int storyID); 43 41 44 StoryEntity* getStoryEntity(int storyID); 42 43 private: 44 StoryEntity* currentEntity; 45 std::list<StoryEntity*> entities; 46 bool running; 47 45 48 }; 46 49 -
branches/network/src/story_entities/game_world.cc
r6371 r6372 196 196 * loads the GameWorld by initializing all resources, and set their default values. 197 197 */ 198 ErrorMessage GameWorld::load ()198 ErrorMessage GameWorld::loadData() 199 199 { 200 200 this->displayLoadScreen(); -
branches/network/src/story_entities/game_world.h
r6371 r6372 37 37 /* functions from story-entity */ 38 38 virtual ErrorMessage init(); 39 virtual ErrorMessage load ();39 virtual ErrorMessage loadData(); 40 40 41 41 virtual ErrorMessage preStart(); -
branches/network/src/story_entities/story_entity.h
r6371 r6372 19 19 virtual ~StoryEntity (); 20 20 21 / / INIT AND LOAD //22 /** initializes a Story Entity to default Values */21 /* initialisation and loading */ 22 /** initializes a Story Entity to the needed values */ 23 23 virtual ErrorMessage init() {}; 24 /** called before loading */ 25 virtual ErrorMessage preLoad() {}; 26 /** called to load. */ 27 virtual ErrorMessage load() {}; 28 /** called right after loading */ 29 virtual ErrorMessage postLoad() {}; 30 /** called after postload to check for integrity. (optional) */ 31 virtual ErrorMessage check() {}; 24 /** called to load the data into the story entity */ 25 virtual ErrorMessage loadData() {}; 32 26 33 / / RUNNING //27 /* running, stopping and pausing */ 34 28 /** called shortly before starting the Entity */ 35 29 virtual ErrorMessage preStart() {};
Note: See TracChangeset
for help on using the changeset viewer.