Last change
on this file since 4559 was
4261,
checked in by bensch, 19 years ago
|
orxonox/trunk: merged the levelLoader-branche back into the trunk, because it seems to be stable.
merged with command:
svn merge -r 4230:HEAD levelLoader ../trunk
no conflicts of any interesst
|
File size:
922 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 | |
---|
| 20 | StoryEntity* currentEntity; |
---|
| 21 | |
---|
[3222] | 22 | virtual ErrorMessage init(); |
---|
| 23 | virtual ErrorMessage start(); |
---|
| 24 | virtual ErrorMessage start(int storyID); |
---|
| 25 | virtual ErrorMessage pause(); |
---|
| 26 | virtual ErrorMessage resume(); |
---|
[3459] | 27 | virtual ErrorMessage stop(); |
---|
| 28 | virtual ErrorMessage destroy(); |
---|
[2636] | 29 | |
---|
[3220] | 30 | void addEntity(StoryEntity* se, int storyID); |
---|
[2636] | 31 | void addEntity(StoryEntity* se); |
---|
[3220] | 32 | void removeEntity(int storyID); |
---|
[2636] | 33 | void removeEntity(StoryEntity* se); |
---|
| 34 | |
---|
| 35 | void nextLevel(); |
---|
| 36 | void previousLevel(); |
---|
| 37 | |
---|
| 38 | private: |
---|
[3608] | 39 | //ListTemplate<StoryEntity>* entities; |
---|
| 40 | tList<StoryEntity>* entities; |
---|
[2636] | 41 | bool running; |
---|
| 42 | |
---|
[3220] | 43 | StoryEntity* getStoryEntity(int storyID); |
---|
[2636] | 44 | }; |
---|
| 45 | |
---|
[3224] | 46 | #endif /* _CAMPAIGN_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.