Last change
on this file since 3119 was
2636,
checked in by patrick, 20 years ago
|
- Added a GameLoader to the game. This enables orxonox to load a campaign consisting of multimple worlds and cinematics etc. However, cinematics are not yet implemented.
In the game you can jump from one level to the other by pressing x. Currently there are only two very simple levels defined. (DEBUG_LEVEL_0, DEBUG_LEVEL_1).
- Added Error Handling structs to signal the error source and code
|
File size:
648 bytes
|
Rev | Line | |
---|
[2636] | 1 | |
---|
| 2 | #ifndef STORY_ENTITY_H |
---|
| 3 | #define STORY_ENTITY_H |
---|
| 4 | |
---|
| 5 | #include "stdincl.h" |
---|
| 6 | #include "story_def.h" |
---|
| 7 | |
---|
| 8 | class StoryEntity { |
---|
| 9 | |
---|
| 10 | public: |
---|
| 11 | StoryEntity (); |
---|
| 12 | ~StoryEntity (); |
---|
| 13 | |
---|
| 14 | bool isInit; |
---|
| 15 | bool isPaused; |
---|
| 16 | |
---|
| 17 | virtual Error init(); |
---|
| 18 | virtual Error start(Uint32 storyID); |
---|
| 19 | virtual Error start(); |
---|
| 20 | virtual Error stop(); |
---|
| 21 | virtual Error pause(); |
---|
| 22 | virtual Error resume(); |
---|
| 23 | |
---|
| 24 | virtual void load(); |
---|
| 25 | |
---|
| 26 | virtual void displayEntityScreen(); |
---|
| 27 | virtual void releaseEntityScreen(); |
---|
| 28 | |
---|
| 29 | void setStoryID(Uint32 storyID); |
---|
| 30 | int getStoryID(); |
---|
| 31 | |
---|
| 32 | void setNextStoryID(Uint32 nextStoryID); |
---|
| 33 | Uint32 getNextStoryID(); |
---|
| 34 | |
---|
| 35 | |
---|
| 36 | private: |
---|
| 37 | Uint32 storyID; |
---|
| 38 | Uint32 nextStoryID; |
---|
| 39 | }; |
---|
| 40 | |
---|
| 41 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.