Changeset 7370 in orxonox.OLD for trunk/src/story_entities/campaign_data.h
- Timestamp:
- Apr 26, 2006, 1:31:01 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/campaign_data.h
r6874 r7370 17 17 { 18 18 19 20 21 19 public: 20 CampaignData(const TiXmlElement* root); 21 virtual ~CampaignData(); 22 22 23 23 virtual void loadParams(const TiXmlElement* root); 24 24 25 void loadData(const TiXmlElement* root);25 void addStoryEntity(StoryEntity* se); 26 26 27 void addStoryEntity(StoryEntity* se); 27 StoryEntity* getFirstLevel(); 28 StoryEntity* getNextLevel(); 29 StoryEntity* getLevel(int storyID); 28 30 29 StoryEntity* getFirstLevel(); 30 StoryEntity* getNextLevel(); 31 StoryEntity* getLevel(int storyID); 31 /** @param storyEntity the current entity to be set */ 32 inline void setCurrentEntity(StoryEntity* storyEntity) { this->currentEntity = storyEntity; } 33 /** @return the current StoryEntity played*/ 34 inline StoryEntity* getCurrentEntity() { return this->currentEntity; } 32 35 33 /** @param storyEntity the current entity to be set */ 34 inline void setCurrentEntity(StoryEntity* storyEntity) { this->currentEntity = storyEntity; } 35 /** @return the current StoryEntity played*/ 36 inline StoryEntity* getCurrentEntity() { return this->currentEntity; } 36 private: 37 void loadDataDyn(const TiXmlElement* root); 37 38 38 39 private: 40 StoryEntity* currentEntity; //!< reference to the currently used StoryEntity 41 std::list<StoryEntity*> storyEntities; //!< list of story entities 39 private: 40 StoryEntity* currentEntity; //!< reference to the currently used StoryEntity 41 std::list<StoryEntity*> storyEntities; //!< list of story entities 42 42 }; 43 43
Note: See TracChangeset
for help on using the changeset viewer.