Changeset 6386 in orxonox.OLD for branches/network/src/story_entities/campaign.h
- Timestamp:
- Jan 2, 2006, 1:30:23 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/story_entities/campaign.h
r6374 r6386 1 /*! 2 * @file campaign.h 3 * definition of the campaign 4 */ 1 5 2 6 #ifndef _CAMPAIGN_H 3 7 #define _CAMPAIGN_H 4 8 9 5 10 #include "story_entity.h" 6 7 11 #include <list> 8 12 9 class World; 13 10 14 class TiXmlElement; 15 class CampaignData; 11 16 17 18 //! A class that represents a game Campaign that contains other StoryEntities like GameWorlds, movies, etc. 12 19 class Campaign : public StoryEntity 13 20 { … … 22 29 virtual ErrorMessage init(); 23 30 virtual ErrorMessage start(); 24 virtual ErrorMessage start(int storyID);25 31 virtual ErrorMessage pause(); 26 32 virtual ErrorMessage resume(); 27 33 virtual ErrorMessage stop(); 28 34 29 void addEntity(StoryEntity* se, int storyID); 30 void addEntity(StoryEntity* se); 31 void removeEntity(int storyID); 32 void removeEntity(StoryEntity* se); 33 34 void nextLevel(); 35 void previousLevel(); 35 void switchToNextLevel(); 36 36 37 37 38 38 private: 39 StoryEntity* getStoryEntity(int storyID); 40 41 42 private: 43 StoryEntity* currentEntity; 44 std::list<StoryEntity*> entities; 45 bool running; 46 39 StoryEntity* currentEntity; //!< reference to the current StoryEntity 40 CampaignData* campaignData; //!< reference to the CampaignData 47 41 }; 48 42 49 43 50 44 45 //! A class that contains the data of the Campaign object 51 46 class CampaignData : virtual public BaseObject 52 47 { … … 56 51 virtual ~CampaignData(); 57 52 58 void addStoryEntity(StoryEntity* se , int storyID = -1);53 void addStoryEntity(StoryEntity* se); 59 54 60 void getNextLevel(); 55 StoryEntity* getFirstLevel(); 56 StoryEntity* getNextLevel(); 57 58 59 private: 60 StoryEntity* currentEntity; //!< reference to the currently used StoryEntity 61 std::list<StoryEntity*> storyEntities; //!< list of story entities 61 62 }; 62 63
Note: See TracChangeset
for help on using the changeset viewer.