Last change
on this file since 3312 was
3224,
checked in by bensch, 20 years ago
|
orxonox/trunk: FILE_H → _FILE_H to all h-files.
|
File size:
1.2 KB
|
Rev | Line | |
---|
[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... |
---|
[2636] | 14 | class StoryEntity { |
---|
| 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 | |
---|
[3222] | 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(); |
---|
[2636] | 29 | |
---|
| 30 | virtual void load(); |
---|
[3220] | 31 | virtual void destroy(); |
---|
[2636] | 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.