Last change
on this file since 3179 was
2816,
checked in by patrick, 20 years ago
|
orxonox/trunk/src: new list implemented
|
File size:
711 bytes
|
Line | |
---|
1 | |
---|
2 | #ifndef CAMPAIGN_H |
---|
3 | #define CAMPAIGN_H |
---|
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 | |
---|
19 | virtual Error init(); |
---|
20 | virtual Error start(); |
---|
21 | virtual Error start(Uint32 storyID); |
---|
22 | virtual Error stop(); |
---|
23 | virtual Error pause(); |
---|
24 | virtual Error resume(); |
---|
25 | |
---|
26 | void addEntity(StoryEntity* se, Uint32 storyID); |
---|
27 | void addEntity(StoryEntity* se); |
---|
28 | void removeEntity(Uint32 storyID); |
---|
29 | void removeEntity(StoryEntity* se); |
---|
30 | |
---|
31 | void nextLevel(); |
---|
32 | void previousLevel(); |
---|
33 | |
---|
34 | private: |
---|
35 | ListTemplate<StoryEntity>* entities; |
---|
36 | bool running; |
---|
37 | |
---|
38 | StoryEntity* getStoryEntity(Uint32 storyID); |
---|
39 | }; |
---|
40 | |
---|
41 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.