Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/physics/src/story_entities/campaign.h @ 4331

Last change on this file since 4331 was 4283, checked in by bensch, 20 years ago

orxonox/branches/physics: merged the trunk back to branches/physics
merged with command
svn merge -r 4223:HEAD ../../trunk/ .
conflicts additively included

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.