Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/network/src/story_entities/campaign.h @ 6371

Last change on this file since 6371 was 6371, checked in by patrick, 18 years ago

network: thown some old story entity functions away

File size: 957 bytes
Line 
1
2#ifndef _CAMPAIGN_H
3#define _CAMPAIGN_H
4
5#include "story_entity.h"
6
7#include <list>
8
9class World;
10class TiXmlElement;
11
12class Campaign : public StoryEntity {
13
14 public:
15  Campaign ();
16  Campaign ( TiXmlElement* root);
17  virtual ~Campaign ();
18
19  void loadParams(const TiXmlElement* root);
20  void loadWorldListParams(const TiXmlElement* root);
21
22  StoryEntity* currentEntity;
23
24  virtual ErrorMessage init();
25  virtual ErrorMessage start();
26  virtual ErrorMessage start(int storyID);
27  virtual ErrorMessage pause();
28  virtual ErrorMessage resume();
29  virtual ErrorMessage stop();
30
31  void addEntity(StoryEntity* se, int storyID);
32  void addEntity(StoryEntity* se);
33  void removeEntity(int storyID);
34  void removeEntity(StoryEntity* se);
35
36  void nextLevel();
37  void previousLevel();
38
39 private:
40  //ListTemplate<StoryEntity>* entities;
41   std::list<StoryEntity*> entities;
42   bool running;
43
44   StoryEntity* getStoryEntity(int storyID);
45};
46
47#endif /* _CAMPAIGN_H */
Note: See TracBrowser for help on using the repository browser.