source:
orxonox.OLD/branches/network/src/story_entities/campaign.h
@
6377
Last change on this file since 6377 was 6374, checked in by patrick, 18 years ago | |
---|---|
File size: 1.1 KB |
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: |
[6374] | 16 | Campaign( TiXmlElement* root); |
[6372] | 17 | virtual ~Campaign (); |
[2636] | 18 | |
[6372] | 19 | void loadParams(const TiXmlElement* root); |
20 | void loadWorldListParams(const TiXmlElement* root); | |
[4598] | 21 | |
[6372] | 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(); | |
[2636] | 28 | |
[6372] | 29 | void addEntity(StoryEntity* se, int storyID); |
30 | void addEntity(StoryEntity* se); | |
31 | void removeEntity(int storyID); | |
32 | void removeEntity(StoryEntity* se); | |
[2636] | 33 | |
[6372] | 34 | void nextLevel(); |
35 | void previousLevel(); | |
[4597] | 36 | |
[2636] | 37 | |
[6372] | 38 | private: |
39 | StoryEntity* getStoryEntity(int storyID); | |
[2636] | 40 | |
[6372] | 41 | |
42 | private: | |
43 | StoryEntity* currentEntity; | |
44 | std::list<StoryEntity*> entities; | |
45 | bool running; | |
46 | ||
[2636] | 47 | }; |
48 | ||
[6374] | 49 | |
50 | ||
51 | class CampaignData : virtual public BaseObject | |
52 | { | |
53 | ||
54 | public: | |
55 | CampaignData(); | |
56 | virtual ~CampaignData(); | |
57 | ||
58 | void addStoryEntity(StoryEntity* se, int storyID = -1); | |
59 | ||
60 | void getNextLevel(); | |
61 | }; | |
62 | ||
[3224] | 63 | #endif /* _CAMPAIGN_H */ |
Note: See TracBrowser
for help on using the repository browser.