| Rev | Line |   | 
|---|
| [6402] | 1 | /*! | 
|---|
 | 2 |  * @file campaign_data.h | 
|---|
 | 3 |  * definition of the campaign data tank | 
|---|
 | 4 |  */ | 
|---|
 | 5 |  | 
|---|
 | 6 | #ifndef _CAMPAIGN_DATA_H | 
|---|
 | 7 | #define _CAMPAIGN_DATA_H | 
|---|
 | 8 |  | 
|---|
 | 9 |  | 
|---|
| [6404] | 10 | #include "data_tank.h" | 
|---|
| [6402] | 11 | #include <list> | 
|---|
 | 12 |  | 
|---|
 | 13 | class StoryEntity; | 
|---|
 | 14 |  | 
|---|
 | 15 | //! A class that contains the data of the Campaign object | 
|---|
| [6404] | 16 | class CampaignData : public DataTank | 
|---|
| [6402] | 17 | { | 
|---|
| [9869] | 18 |   ObjectListDeclaration(CampaignData); | 
|---|
| [6402] | 19 |  | 
|---|
| [7370] | 20 | public: | 
|---|
 | 21 |   CampaignData(const TiXmlElement* root); | 
|---|
 | 22 |   virtual ~CampaignData(); | 
|---|
| [6402] | 23 |  | 
|---|
| [7370] | 24 |   virtual void loadParams(const TiXmlElement* root); | 
|---|
| [6407] | 25 |  | 
|---|
| [7370] | 26 |   void addStoryEntity(StoryEntity* se); | 
|---|
| [6402] | 27 |  | 
|---|
| [7370] | 28 |   StoryEntity* getFirstLevel(); | 
|---|
 | 29 |   StoryEntity* getNextLevel(); | 
|---|
 | 30 |   StoryEntity* getLevel(int storyID); | 
|---|
| [6402] | 31 |  | 
|---|
| [7370] | 32 |   /** @param storyEntity the current entity to be set */ | 
|---|
 | 33 |   inline void setCurrentEntity(StoryEntity* storyEntity) { this->currentEntity = storyEntity; } | 
|---|
 | 34 |   /** @return the current StoryEntity played*/ | 
|---|
 | 35 |   inline StoryEntity* getCurrentEntity() { return this->currentEntity; } | 
|---|
| [6402] | 36 |  | 
|---|
| [7370] | 37 | private: | 
|---|
 | 38 |   void loadDataDyn(const TiXmlElement* root); | 
|---|
| [6402] | 39 |  | 
|---|
| [7370] | 40 | private: | 
|---|
 | 41 |   StoryEntity*                  currentEntity;                //!< reference to the currently used StoryEntity | 
|---|
 | 42 |   std::list<StoryEntity*>       storyEntities;                //!< list of story entities | 
|---|
| [6402] | 43 | }; | 
|---|
 | 44 |  | 
|---|
 | 45 |  | 
|---|
 | 46 | #endif /* _CAMPAIGN_DATA_H */ | 
|---|
 | 47 |  | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.