Changeset 6424 in orxonox.OLD for trunk/src/story_entities/campaign.h
- Timestamp:
- Jan 7, 2006, 11:07:22 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/campaign.h
r5774 r6424 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 11 7 #include <list>8 12 9 class World;10 13 class TiXmlElement; 14 class CampaignData; 11 15 12 class Campaign : public StoryEntity {13 16 14 public: 15 Campaign (); 16 Campaign ( TiXmlElement* root); 17 virtual ~Campaign (); 17 //! A class that represents a game Campaign that contains other StoryEntities like GameWorlds, movies, etc. 18 class Campaign : public StoryEntity 19 { 18 20 19 void loadParams(const TiXmlElement* root); 20 void loadWorldListParams(const TiXmlElement* root); 21 public: 22 Campaign( TiXmlElement* root); 23 virtual ~Campaign (); 21 24 22 StoryEntity* currentEntity;25 void loadParams(const TiXmlElement* root); 23 26 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 virtual ErrorMessage destroy(); 27 virtual bool start(); 28 virtual bool stop(); 29 virtual bool pause(); 30 virtual bool resume(); 31 virtual void run(); 31 32 32 void addEntity(StoryEntity* se, int storyID); 33 void addEntity(StoryEntity* se); 34 void removeEntity(int storyID); 35 void removeEntity(StoryEntity* se); 33 void switchToNextLevel(); 36 34 37 void nextLevel();38 void previousLevel();39 35 40 private: 41 //ListTemplate<StoryEntity>* entities; 42 std::list<StoryEntity*> entities; 43 bool running; 44 45 StoryEntity* getStoryEntity(int storyID); 36 private: 37 StoryEntity* currentEntity; //!< reference to the current StoryEntity 38 CampaignData* campaignData; //!< reference to the CampaignData 46 39 }; 47 40
Note: See TracChangeset
for help on using the changeset viewer.