Last change
on this file since 5038 was
4598,
checked in by bensch, 19 years ago
|
orxonox/trunk: campaign now gets loaded via LoadParam
|
File size:
1020 bytes
|
Rev | Line | |
---|
[2636] | 1 | |
---|
[3224] | 2 | #ifndef _CAMPAIGN_H |
---|
| 3 | #define _CAMPAIGN_H |
---|
[2636] | 4 | |
---|
| 5 | #include "stdincl.h" |
---|
| 6 | #include "story_entity.h" |
---|
| 7 | |
---|
| 8 | |
---|
| 9 | class World; |
---|
[4261] | 10 | class TiXmlElement; |
---|
[3608] | 11 | template<class T> class tList; |
---|
[2636] | 12 | |
---|
| 13 | class Campaign : public StoryEntity { |
---|
| 14 | |
---|
| 15 | public: |
---|
| 16 | Campaign (); |
---|
[4010] | 17 | Campaign ( TiXmlElement* root); |
---|
[3544] | 18 | virtual ~Campaign (); |
---|
[2636] | 19 | |
---|
[4598] | 20 | void loadParams(const TiXmlElement* root); |
---|
| 21 | void loadWorldListParams(const TiXmlElement* root); |
---|
| 22 | |
---|
[2636] | 23 | StoryEntity* currentEntity; |
---|
| 24 | |
---|
[3222] | 25 | virtual ErrorMessage init(); |
---|
| 26 | virtual ErrorMessage start(); |
---|
| 27 | virtual ErrorMessage start(int storyID); |
---|
| 28 | virtual ErrorMessage pause(); |
---|
| 29 | virtual ErrorMessage resume(); |
---|
[3459] | 30 | virtual ErrorMessage stop(); |
---|
| 31 | virtual ErrorMessage destroy(); |
---|
[2636] | 32 | |
---|
[3220] | 33 | void addEntity(StoryEntity* se, int storyID); |
---|
[2636] | 34 | void addEntity(StoryEntity* se); |
---|
[3220] | 35 | void removeEntity(int storyID); |
---|
[2636] | 36 | void removeEntity(StoryEntity* se); |
---|
[4597] | 37 | |
---|
[2636] | 38 | void nextLevel(); |
---|
| 39 | void previousLevel(); |
---|
| 40 | |
---|
| 41 | private: |
---|
[3608] | 42 | //ListTemplate<StoryEntity>* entities; |
---|
| 43 | tList<StoryEntity>* entities; |
---|
[2636] | 44 | bool running; |
---|
| 45 | |
---|
[3220] | 46 | StoryEntity* getStoryEntity(int storyID); |
---|
[2636] | 47 | }; |
---|
| 48 | |
---|
[3224] | 49 | #endif /* _CAMPAIGN_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.