Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/story_entities/story_entity.h @ 6124

Last change on this file since 6124 was 5039, checked in by bensch, 19 years ago

orxonox/trunk: useless stuff :)

File size: 1.3 KB
Line 
1/*!
2 * @file story_entity.h
3  *  holds the base class of everything that is playable - that is part of the story
4*/
5
6
7#ifndef _STORY_ENTITY_H
8#define _STORY_ENTITY_H
9
10#include "base_object.h"
11#include "story_def.h"
12#include "error.h"
13
14//! A class that represents something to play in orxonox. it is a container for worlds, movies, mission briefings, etc...
15class StoryEntity : public BaseObject {
16
17 public:
18  StoryEntity ();
19  virtual ~StoryEntity ();
20
21  bool isInit;  //! if the entity is initialized, this has to be true
22  bool isPaused; //! is true if the entity is paused
23
24  virtual ErrorMessage preLoad();
25  virtual ErrorMessage load();
26  virtual ErrorMessage init();
27  virtual ErrorMessage start(int storyID);
28  virtual ErrorMessage start();
29  virtual ErrorMessage pause();
30  virtual ErrorMessage resume();
31  virtual ErrorMessage stop();
32  virtual ErrorMessage destroy();
33
34
35  virtual void displayLoadScreen();
36  virtual void releaseLoadScreen();
37
38  void setStoryID(int storyID);
39  int getStoryID();
40
41  void setNextStoryID(int nextStoryID);
42  int getNextStoryID();
43
44
45 private:
46  int storyID; //! this is the number of this entity, identifying it in a list/tree...
47  int nextStoryID; //! if this entity has finished, this entity shall be called
48};
49
50#endif /* _STORY_ENTITY_H */
Note: See TracBrowser for help on using the repository browser.