Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 2738 was 2636, checked in by patrick, 20 years ago
  • Added a GameLoader to the game. This enables orxonox to load a campaign consisting of multimple worlds and cinematics etc. However, cinematics are not yet implemented.

In the game you can jump from one level to the other by pressing x. Currently there are only two very simple levels defined. (DEBUG_LEVEL_0, DEBUG_LEVEL_1).

  • Added Error Handling structs to signal the error source and code
File size: 703 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(Uint32 storyID);
22  virtual Error stop();
23  virtual Error pause();
24  virtual Error resume();
25
26  void addEntity(StoryEntity* se, Uint32 storyID);
27  void addEntity(StoryEntity* se);
28  void removeEntity(Uint32 storyID);
29  void removeEntity(StoryEntity* se);
30 
31  void nextLevel();
32  void previousLevel();
33
34 private:
35  List<StoryEntity>* entities;
36  bool running;
37
38  StoryEntity* getStoryEntity(Uint32 storyID);
39};
40
41#endif
Note: See TracBrowser for help on using the repository browser.