Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/story_entities/campaign.h @ 6916

Last change on this file since 6916 was 6874, checked in by patrick, 19 years ago

trunk: the menu control better implemented

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