Last change
on this file since 3964 was
3365,
checked in by bensch, 20 years ago
|
orxonox/trunk: merged branches/parenting back to the.
merged with command:
svn merge branches/parenting trunk -r 3247:HEAD
resolved all conflicts in favor of parenting.
|
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... |
---|
14 | class 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 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.