Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/levelloader/src/story_entities/campaign.h @ 3525

Last change on this file since 3525 was 3525, checked in by chris, 19 years ago

orxonox/branches/levelloader: removed excess class usage adn messed with makefile definitions

File size: 870 bytes
Line 
1
2#ifndef _CAMPAIGN_HCREATE_FACTORY
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 ( TiXmlElement* root);
16  ~Campaign ();
17
18  StoryEntity* currentEntity;
19
20  virtual ErrorMessage init();
21  virtual ErrorMessage start();
22  virtual ErrorMessage start(int storyID);
23  virtual ErrorMessage pause();
24  virtual ErrorMessage resume();
25  virtual ErrorMessage stop();
26  virtual ErrorMessage 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
43CREATE_FACTORY(Campaign);
44
45#endif /* _CAMPAIGN_H */
Note: See TracBrowser for help on using the repository browser.