Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/heightMap/src/story_entities/story_entity.h @ 5114

Last change on this file since 5114 was 3629, checked in by patrick, 20 years ago

orxonox/trunk: some changes in the storyentity framework: added a preLoad() function, since there is some stuff to be initialized before load(). written some comments to level loading doxygen stuff. now the worldinterface works

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