Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/campaign.h @ 3465

Last change on this file since 3465 was 3459, checked in by patrick, 20 years ago

orxonox/trunk: cleaning up old stuff in world.cc and its relatives. first step…

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