source:
orxonox.OLD/branches/network/src/story_entities/campaign.h
@
6372
Last change on this file since 6372 was 6372, checked in by patrick, 18 years ago | |
---|---|
File size: 970 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 | |
[6372] | 12 | class Campaign : public StoryEntity |
13 | { | |
[2636] | 14 | |
[6372] | 15 | public: |
16 | Campaign (); | |
17 | Campaign ( TiXmlElement* root); | |
18 | virtual ~Campaign (); | |
[2636] | 19 | |
[6372] | 20 | void loadParams(const TiXmlElement* root); |
21 | void loadWorldListParams(const TiXmlElement* root); | |
[4598] | 22 | |
[6372] | 23 | virtual ErrorMessage init(); |
24 | virtual ErrorMessage start(); | |
25 | virtual ErrorMessage start(int storyID); | |
26 | virtual ErrorMessage pause(); | |
27 | virtual ErrorMessage resume(); | |
28 | virtual ErrorMessage stop(); | |
[2636] | 29 | |
[6372] | 30 | void addEntity(StoryEntity* se, int storyID); |
31 | void addEntity(StoryEntity* se); | |
32 | void removeEntity(int storyID); | |
33 | void removeEntity(StoryEntity* se); | |
[2636] | 34 | |
[6372] | 35 | void nextLevel(); |
36 | void previousLevel(); | |
[4597] | 37 | |
[2636] | 38 | |
[6372] | 39 | private: |
40 | StoryEntity* getStoryEntity(int storyID); | |
[2636] | 41 | |
[6372] | 42 | |
43 | private: | |
44 | StoryEntity* currentEntity; | |
45 | std::list<StoryEntity*> entities; | |
46 | bool running; | |
47 | ||
[2636] | 48 | }; |
49 | ||
[3224] | 50 | #endif /* _CAMPAIGN_H */ |
Note: See TracBrowser
for help on using the repository browser.