Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 3472 was 3472, checked in by patrick, 19 years ago

orxonox/trunk: redesigning directory structure - created story_entities dir, moved important classes

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