Last change
on this file since 6374 was
6374,
checked in by patrick, 18 years ago
|
network: single player loads again, many changes in the function bodies of the loading code
|
File size:
1.1 KB
|
Line | |
---|
1 | |
---|
2 | #ifndef _CAMPAIGN_H |
---|
3 | #define _CAMPAIGN_H |
---|
4 | |
---|
5 | #include "story_entity.h" |
---|
6 | |
---|
7 | #include <list> |
---|
8 | |
---|
9 | class World; |
---|
10 | class TiXmlElement; |
---|
11 | |
---|
12 | class Campaign : public StoryEntity |
---|
13 | { |
---|
14 | |
---|
15 | public: |
---|
16 | Campaign( TiXmlElement* root); |
---|
17 | virtual ~Campaign (); |
---|
18 | |
---|
19 | void loadParams(const TiXmlElement* root); |
---|
20 | void loadWorldListParams(const TiXmlElement* root); |
---|
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 | |
---|
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 | |
---|
38 | private: |
---|
39 | StoryEntity* getStoryEntity(int storyID); |
---|
40 | |
---|
41 | |
---|
42 | private: |
---|
43 | StoryEntity* currentEntity; |
---|
44 | std::list<StoryEntity*> entities; |
---|
45 | bool running; |
---|
46 | |
---|
47 | }; |
---|
48 | |
---|
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 | |
---|
63 | #endif /* _CAMPAIGN_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.