Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 3866 was 3608, checked in by patrick, 19 years ago

orxonox/trunk: now there is a real speedup in compiling time when dependencies are modified: just realy only includes, what is needed. Byside the speedup, there is more overview! never add an orxonox class to stdincl.h if it doesn't have to be

File size: 868 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 ();
[3544]16  virtual ~Campaign ();
[2636]17
18  StoryEntity* currentEntity;
19
[3222]20  virtual ErrorMessage init();
21  virtual ErrorMessage start();
22  virtual ErrorMessage start(int storyID);
23  virtual ErrorMessage pause();
24  virtual ErrorMessage resume();
[3459]25  virtual ErrorMessage stop();
26  virtual ErrorMessage destroy();
[2636]27
[3220]28  void addEntity(StoryEntity* se, int storyID);
[2636]29  void addEntity(StoryEntity* se);
[3220]30  void removeEntity(int storyID);
[2636]31  void removeEntity(StoryEntity* se);
32 
33  void nextLevel();
34  void previousLevel();
35
36 private:
[3608]37  //ListTemplate<StoryEntity>* entities;
38  tList<StoryEntity>* entities;
[2636]39  bool running;
40
[3220]41  StoryEntity* getStoryEntity(int storyID);
[2636]42};
43
[3224]44#endif /* _CAMPAIGN_H */
Note: See TracBrowser for help on using the repository browser.