Last change
on this file since 6683 was
6512,
checked in by bensch, 19 years ago
|
orxonox/trunk: loadParams is now virtual.
ALL THE CLASSES HAVE TO CALL
SuperClass::loadParams(root);
isntead of:
static_cast<SuperClass*>(this)→loadParams(root);
which was quite stupid anyways
|
File size:
834 bytes
|
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 | { |
---|
| 18 | |
---|
| 19 | public: |
---|
| 20 | CampaignData(const TiXmlElement* root); |
---|
| 21 | virtual ~CampaignData(); |
---|
| 22 | |
---|
[6512] | 23 | virtual void loadParams(const TiXmlElement* root); |
---|
[6407] | 24 | |
---|
[6404] | 25 | void loadData(const TiXmlElement* root); |
---|
[6402] | 26 | |
---|
| 27 | void addStoryEntity(StoryEntity* se); |
---|
| 28 | |
---|
| 29 | StoryEntity* getFirstLevel(); |
---|
| 30 | StoryEntity* getNextLevel(); |
---|
| 31 | |
---|
| 32 | |
---|
| 33 | private: |
---|
| 34 | StoryEntity* currentEntity; //!< reference to the currently used StoryEntity |
---|
| 35 | std::list<StoryEntity*> storyEntities; //!< list of story entities |
---|
| 36 | }; |
---|
| 37 | |
---|
| 38 | |
---|
| 39 | #endif /* _CAMPAIGN_DATA_H */ |
---|
| 40 | |
---|
Note: See
TracBrowser
for help on using the repository browser.