source:
orxonox.OLD/branches/network/src/story_entities/campaign.h
@
6402
Last change on this file since 6402 was 6402, checked in by patrick, 18 years ago | |
---|---|
File size: 844 bytes |
Rev | Line | |
---|---|---|
[6386] | 1 | /*! |
2 | * @file campaign.h | |
3 | * definition of the campaign | |
4 | */ | |
[2636] | 5 | |
[3224] | 6 | #ifndef _CAMPAIGN_H |
7 | #define _CAMPAIGN_H | |
[2636] | 8 | |
[6386] | 9 | |
[2636] | 10 | #include "story_entity.h" |
11 | ||
[6386] | 12 | |
[4261] | 13 | class TiXmlElement; |
[6386] | 14 | class CampaignData; |
[2636] | 15 | |
[6386] | 16 | |
17 | //! A class that represents a game Campaign that contains other StoryEntities like GameWorlds, movies, etc. | |
[6372] | 18 | class Campaign : public StoryEntity |
19 | { | |
[2636] | 20 | |
[6372] | 21 | public: |
[6374] | 22 | Campaign( TiXmlElement* root); |
[6372] | 23 | virtual ~Campaign (); |
[2636] | 24 | |
[6372] | 25 | void loadParams(const TiXmlElement* root); |
[4598] | 26 | |
[6387] | 27 | virtual bool start(); |
28 | virtual bool stop(); | |
29 | virtual bool pause(); | |
30 | virtual bool resume(); | |
31 | virtual void run(); | |
[2636] | 32 | |
[6386] | 33 | void switchToNextLevel(); |
[2636] | 34 | |
[4597] | 35 | |
[6372] | 36 | private: |
[6386] | 37 | StoryEntity* currentEntity; //!< reference to the current StoryEntity |
38 | CampaignData* campaignData; //!< reference to the CampaignData | |
[2636] | 39 | }; |
40 | ||
[3224] | 41 | #endif /* _CAMPAIGN_H */ |
Note: See TracBrowser
for help on using the repository browser.