Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/levelLoader/src/story_entities/campaign.h @ 4253

Last change on this file since 4253 was 4239, checked in by bensch, 20 years ago

orxonox/branches/levelLoader: factory not in stdincl anymore

File size: 922 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  StoryEntity* currentEntity;
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  virtual ErrorMessage destroy();
29
30  void addEntity(StoryEntity* se, int storyID);
31  void addEntity(StoryEntity* se);
32  void removeEntity(int storyID);
33  void removeEntity(StoryEntity* se);
34 
35  void nextLevel();
36  void previousLevel();
37
38 private:
39  //ListTemplate<StoryEntity>* entities;
40  tList<StoryEntity>* entities;
41  bool running;
42
43  StoryEntity* getStoryEntity(int storyID);
44};
45
46#endif /* _CAMPAIGN_H */
Note: See TracBrowser for help on using the repository browser.