Last change
on this file since 3991 was
3989,
checked in by bensch, 20 years ago
|
orxonox/branches/ll2trunktemp: some more headers, now the level really gets loaded
|
File size:
902 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 | template<class T> class tList; |
---|
11 | |
---|
12 | class Campaign : public StoryEntity { |
---|
13 | |
---|
14 | public: |
---|
15 | Campaign (); |
---|
16 | Campaign ( TiXmlElement* root); |
---|
17 | virtual ~Campaign (); |
---|
18 | |
---|
19 | StoryEntity* currentEntity; |
---|
20 | |
---|
21 | virtual ErrorMessage init(); |
---|
22 | virtual ErrorMessage start(); |
---|
23 | virtual ErrorMessage start(int storyID); |
---|
24 | virtual ErrorMessage pause(); |
---|
25 | virtual ErrorMessage resume(); |
---|
26 | virtual ErrorMessage stop(); |
---|
27 | virtual ErrorMessage destroy(); |
---|
28 | |
---|
29 | void addEntity(StoryEntity* se, int storyID); |
---|
30 | void addEntity(StoryEntity* se); |
---|
31 | void removeEntity(int storyID); |
---|
32 | void removeEntity(StoryEntity* se); |
---|
33 | |
---|
34 | void nextLevel(); |
---|
35 | void previousLevel(); |
---|
36 | |
---|
37 | private: |
---|
38 | //ListTemplate<StoryEntity>* entities; |
---|
39 | tList<StoryEntity>* entities; |
---|
40 | bool running; |
---|
41 | |
---|
42 | StoryEntity* getStoryEntity(int storyID); |
---|
43 | }; |
---|
44 | |
---|
45 | #endif /* _CAMPAIGN_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.