Last change
on this file since 3715 was
3238,
checked in by bensch, 20 years ago
|
orxonox/branches: updated branches: buerli, nico, sound. And moved bezierTrack to old.bezierTrack. Conflicts resolved in a usefull order.
Conflics mostly resolved in favor of trunk
merge.
|
File size:
788 bytes
|
Rev | Line | |
---|
[2636] | 1 | |
---|
[3238] | 2 | #ifndef _CAMPAIGN_H |
---|
| 3 | #define _CAMPAIGN_H |
---|
[2636] | 4 | |
---|
| 5 | #include "stdincl.h" |
---|
| 6 | #include "story_entity.h" |
---|
| 7 | |
---|
| 8 | |
---|
| 9 | class World; |
---|
| 10 | |
---|
| 11 | class Campaign : public StoryEntity { |
---|
| 12 | |
---|
| 13 | public: |
---|
| 14 | Campaign (); |
---|
| 15 | ~Campaign (); |
---|
| 16 | |
---|
| 17 | StoryEntity* currentEntity; |
---|
| 18 | |
---|
[3238] | 19 | virtual ErrorMessage init(); |
---|
| 20 | virtual ErrorMessage start(); |
---|
| 21 | virtual ErrorMessage start(int storyID); |
---|
| 22 | virtual ErrorMessage stop(); |
---|
| 23 | virtual ErrorMessage pause(); |
---|
| 24 | virtual ErrorMessage resume(); |
---|
[2636] | 25 | |
---|
[3238] | 26 | virtual void destroy(); |
---|
| 27 | |
---|
| 28 | void addEntity(StoryEntity* se, int storyID); |
---|
[2636] | 29 | void addEntity(StoryEntity* se); |
---|
[3238] | 30 | void removeEntity(int storyID); |
---|
[2636] | 31 | void removeEntity(StoryEntity* se); |
---|
| 32 | |
---|
| 33 | void nextLevel(); |
---|
| 34 | void previousLevel(); |
---|
| 35 | |
---|
| 36 | private: |
---|
[2816] | 37 | ListTemplate<StoryEntity>* entities; |
---|
[2636] | 38 | bool running; |
---|
| 39 | |
---|
[3238] | 40 | StoryEntity* getStoryEntity(int storyID); |
---|
[2636] | 41 | }; |
---|
| 42 | |
---|
[3238] | 43 | #endif /* _CAMPAIGN_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.