Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: fixed a lot of bugs with StoryEntity management, also cleared up some old unused code

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