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