Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/nico/src/story_entity.h @ 3382

Last change on this file since 3382 was 3238, checked in by bensch, 20 years ago

orxonox/branches: updated branches: buerli, nico, sound. And moved bezierTrack to old.bezierTrack. Conflicts resolved in a usefull order.
Conflics mostly resolved in favor of trunk
merge.

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 {
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 init();
24  virtual ErrorMessage start(int storyID);
25  virtual ErrorMessage start();
26  virtual ErrorMessage stop();
27  virtual ErrorMessage pause();
28  virtual ErrorMessage resume();
29
30  virtual void load();
31  virtual void destroy();
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.