Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/story_entities/campaign.h @ 4709

Last change on this file since 4709 was 4598, checked in by bensch, 19 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
9class World;
10class TiXmlElement;
11template<class T> class tList;
12
13class 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.