Last change
on this file since 4315 was
4261,
checked in by bensch, 20 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
|
Line | |
---|
1 | |
---|
2 | #ifndef _CAMPAIGN_H |
---|
3 | #define _CAMPAIGN_H |
---|
4 | |
---|
5 | #include "stdincl.h" |
---|
6 | #include "story_entity.h" |
---|
7 | |
---|
8 | |
---|
9 | class World; |
---|
10 | class TiXmlElement; |
---|
11 | template<class T> class tList; |
---|
12 | |
---|
13 | class Campaign : public StoryEntity { |
---|
14 | |
---|
15 | public: |
---|
16 | Campaign (); |
---|
17 | Campaign ( TiXmlElement* root); |
---|
18 | virtual ~Campaign (); |
---|
19 | |
---|
20 | StoryEntity* currentEntity; |
---|
21 | |
---|
22 | virtual ErrorMessage init(); |
---|
23 | virtual ErrorMessage start(); |
---|
24 | virtual ErrorMessage start(int storyID); |
---|
25 | virtual ErrorMessage pause(); |
---|
26 | virtual ErrorMessage resume(); |
---|
27 | virtual ErrorMessage stop(); |
---|
28 | virtual ErrorMessage destroy(); |
---|
29 | |
---|
30 | void addEntity(StoryEntity* se, int storyID); |
---|
31 | void addEntity(StoryEntity* se); |
---|
32 | void removeEntity(int storyID); |
---|
33 | void removeEntity(StoryEntity* se); |
---|
34 | |
---|
35 | void nextLevel(); |
---|
36 | void previousLevel(); |
---|
37 | |
---|
38 | private: |
---|
39 | //ListTemplate<StoryEntity>* entities; |
---|
40 | tList<StoryEntity>* entities; |
---|
41 | bool running; |
---|
42 | |
---|
43 | StoryEntity* getStoryEntity(int storyID); |
---|
44 | }; |
---|
45 | |
---|
46 | #endif /* _CAMPAIGN_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.