Last change
on this file since 6175 was
4598,
checked in by bensch, 20 years ago
|
orxonox/trunk: campaign now gets loaded via LoadParam
|
File size:
1020 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 | void loadParams(const TiXmlElement* root); |
---|
21 | void loadWorldListParams(const TiXmlElement* root); |
---|
22 | |
---|
23 | StoryEntity* currentEntity; |
---|
24 | |
---|
25 | virtual ErrorMessage init(); |
---|
26 | virtual ErrorMessage start(); |
---|
27 | virtual ErrorMessage start(int storyID); |
---|
28 | virtual ErrorMessage pause(); |
---|
29 | virtual ErrorMessage resume(); |
---|
30 | virtual ErrorMessage stop(); |
---|
31 | virtual ErrorMessage destroy(); |
---|
32 | |
---|
33 | void addEntity(StoryEntity* se, int storyID); |
---|
34 | void addEntity(StoryEntity* se); |
---|
35 | void removeEntity(int storyID); |
---|
36 | void removeEntity(StoryEntity* se); |
---|
37 | |
---|
38 | void nextLevel(); |
---|
39 | void previousLevel(); |
---|
40 | |
---|
41 | private: |
---|
42 | //ListTemplate<StoryEntity>* entities; |
---|
43 | tList<StoryEntity>* entities; |
---|
44 | bool running; |
---|
45 | |
---|
46 | StoryEntity* getStoryEntity(int storyID); |
---|
47 | }; |
---|
48 | |
---|
49 | #endif /* _CAMPAIGN_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.