Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: merged the levelLoader-branche back into the trunk, because it seems to be stable.
merged with command:
svn merge -r 4230:HEAD levelLoader ../trunk
no conflicts of any interesst

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