| Line | |
|---|
| 1 | |
|---|
| 2 | #ifndef _CAMPAIGN_H |
|---|
| 3 | #define _CAMPAIGN_H |
|---|
| 4 | |
|---|
| 5 | #include "story_entity.h" |
|---|
| 6 | |
|---|
| 7 | #include <list> |
|---|
| 8 | |
|---|
| 9 | class World; |
|---|
| 10 | class TiXmlElement; |
|---|
| 11 | |
|---|
| 12 | class Campaign : public StoryEntity { |
|---|
| 13 | |
|---|
| 14 | public: |
|---|
| 15 | Campaign (); |
|---|
| 16 | Campaign ( TiXmlElement* root); |
|---|
| 17 | virtual ~Campaign (); |
|---|
| 18 | |
|---|
| 19 | void loadParams(const TiXmlElement* root); |
|---|
| 20 | void loadWorldListParams(const TiXmlElement* root); |
|---|
| 21 | |
|---|
| 22 | StoryEntity* currentEntity; |
|---|
| 23 | |
|---|
| 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(); |
|---|
| 31 | |
|---|
| 32 | void addEntity(StoryEntity* se, int storyID); |
|---|
| 33 | void addEntity(StoryEntity* se); |
|---|
| 34 | void removeEntity(int storyID); |
|---|
| 35 | void removeEntity(StoryEntity* se); |
|---|
| 36 | |
|---|
| 37 | void nextLevel(); |
|---|
| 38 | void previousLevel(); |
|---|
| 39 | |
|---|
| 40 | private: |
|---|
| 41 | //ListTemplate<StoryEntity>* entities; |
|---|
| 42 | std::list<StoryEntity*> entities; |
|---|
| 43 | bool running; |
|---|
| 44 | |
|---|
| 45 | StoryEntity* getStoryEntity(int storyID); |
|---|
| 46 | }; |
|---|
| 47 | |
|---|
| 48 | #endif /* _CAMPAIGN_H */ |
|---|
Note: See
TracBrowser
for help on using the repository browser.