Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/levelloader/src/story_entities/story_entity.h @ 3746

Last change on this file since 3746 was 3746, checked in by chris, 19 years ago

orxonox/branches/levelloader: Merged trunk into branch… still not working though…

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