Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/ll2trunktemp/src/story_entities/campaign.h @ 3989

Last change on this file since 3989 was 3989, checked in by bensch, 19 years ago

orxonox/branches/ll2trunktemp: some more headers, now the level really gets loaded

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