Last change
on this file since 3682 was
3681,
checked in by bensch, 20 years ago
|
orxonox/branches/textEngine: merged trunk here.
merged with command:
svn merge ../trunk textEngine -r 3467:HEAD
no conflicts
|
File size:
868 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 | template<class T> class tList; |
---|
11 | |
---|
12 | class Campaign : public StoryEntity { |
---|
13 | |
---|
14 | public: |
---|
15 | Campaign (); |
---|
16 | virtual ~Campaign (); |
---|
17 | |
---|
18 | StoryEntity* currentEntity; |
---|
19 | |
---|
20 | virtual ErrorMessage init(); |
---|
21 | virtual ErrorMessage start(); |
---|
22 | virtual ErrorMessage start(int storyID); |
---|
23 | virtual ErrorMessage pause(); |
---|
24 | virtual ErrorMessage resume(); |
---|
25 | virtual ErrorMessage stop(); |
---|
26 | virtual ErrorMessage destroy(); |
---|
27 | |
---|
28 | void addEntity(StoryEntity* se, int storyID); |
---|
29 | void addEntity(StoryEntity* se); |
---|
30 | void removeEntity(int storyID); |
---|
31 | void removeEntity(StoryEntity* se); |
---|
32 | |
---|
33 | void nextLevel(); |
---|
34 | void previousLevel(); |
---|
35 | |
---|
36 | private: |
---|
37 | //ListTemplate<StoryEntity>* entities; |
---|
38 | tList<StoryEntity>* entities; |
---|
39 | bool running; |
---|
40 | |
---|
41 | StoryEntity* getStoryEntity(int storyID); |
---|
42 | }; |
---|
43 | |
---|
44 | #endif /* _CAMPAIGN_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.