Last change
on this file since 7903 was
6874,
checked in by patrick, 19 years ago
|
trunk: the menu control better implemented
|
File size:
998 bytes
|
Line | |
---|
1 | /*! |
---|
2 | * @file campaign.h |
---|
3 | * definition of the campaign |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _CAMPAIGN_H |
---|
7 | #define _CAMPAIGN_H |
---|
8 | |
---|
9 | |
---|
10 | #include "story_entity.h" |
---|
11 | |
---|
12 | |
---|
13 | class TiXmlElement; |
---|
14 | class CampaignData; |
---|
15 | |
---|
16 | |
---|
17 | //! A class that represents a game Campaign that contains other StoryEntities like GameWorlds, movies, etc. |
---|
18 | class Campaign : public StoryEntity |
---|
19 | { |
---|
20 | |
---|
21 | public: |
---|
22 | Campaign( TiXmlElement* root); |
---|
23 | virtual ~Campaign (); |
---|
24 | |
---|
25 | virtual void loadParams(const TiXmlElement* root); |
---|
26 | |
---|
27 | virtual bool start(); |
---|
28 | virtual bool stop(); |
---|
29 | virtual bool pause(); |
---|
30 | virtual bool resume(); |
---|
31 | virtual void run(); |
---|
32 | |
---|
33 | void switchToNextLevel(); |
---|
34 | |
---|
35 | |
---|
36 | private: |
---|
37 | StoryEntity* currentEntity; //!< reference to the current StoryEntity |
---|
38 | CampaignData* campaignData; //!< reference to the CampaignData |
---|
39 | |
---|
40 | bool bReturnToMenu; //!< is true, if the StoryEntity should return to the Mainmenu after termination |
---|
41 | }; |
---|
42 | |
---|
43 | #endif /* _CAMPAIGN_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.