Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/story_entity.h @ 3461

Last change on this file since 3461 was 3459, checked in by patrick, 20 years ago

orxonox/trunk: cleaning up old stuff in world.cc and its relatives. first step…

File size: 1.2 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
10#include "stdincl.h"
11#include "story_def.h"
12
[3221]13//! A class that represents something to play in orxonox. it is a container for worlds, movies, mission briefings, etc...
[3365]14class StoryEntity : public BaseObject {
[2636]15
16 public:
17  StoryEntity ();
[3221]18  virtual ~StoryEntity ();
[2636]19
[3221]20  bool isInit;  //! if the entity is initialized, this has to be true
21  bool isPaused; //! is true if the entity is paused
[2636]22
[3459]23  virtual ErrorMessage load();
[3222]24  virtual ErrorMessage init();
25  virtual ErrorMessage start(int storyID);
26  virtual ErrorMessage start();
27  virtual ErrorMessage pause();
28  virtual ErrorMessage resume();
[3459]29  virtual ErrorMessage stop();
30  virtual ErrorMessage destroy();
[2636]31
32
[3220]33  virtual void displayLoadScreen();
34  virtual void releaseLoadScreen();
[2636]35
[3220]36  void setStoryID(int storyID);
[2636]37  int getStoryID();
38
[3220]39  void setNextStoryID(int nextStoryID);
40  int getNextStoryID();
[2636]41
42
43 private:
[3221]44  int storyID; //! this is the number of this entity, identifying it in a list/tree...
45  int nextStoryID; //! if this entity has finished, this entity shall be called
[2636]46};
47
[3224]48#endif /* _STORY_ENTITY_H */
Note: See TracBrowser for help on using the repository browser.