Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/branches/levelloader: removed excess class usage adn messed with makefile definitions

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