Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/network/src/story_entities/campaign_data.h @ 6404

Last change on this file since 6404 was 6404, checked in by patrick, 20 years ago

network: working on the last steps, completion is in reach. sadly the world isn't loaded anymore at the moment. continue work later. work flush

File size: 847 bytes
Line 
1/*!
2 * @file campaign_data.h
3 * definition of the campaign data tank
4 */
5
6#ifndef _CAMPAIGN_DATA_H
7#define _CAMPAIGN_DATA_H
8
9
10#include "data_tank.h"
11#include <list>
12
13class StoryEntity;
14
15//! A class that contains the data of the Campaign object
16class CampaignData : public DataTank
17{
18
19  public:
20    CampaignData(const TiXmlElement* root);
21    virtual ~CampaignData();
22
23    void loadData(const TiXmlElement* root);
24
25    void addStoryEntity(StoryEntity* se);
26
27    StoryEntity* getFirstLevel();
28    StoryEntity* getNextLevel();
29
30
31  private:
32    void loadParamsWorldList(const TiXmlElement* root);
33
34
35  private:
36    StoryEntity*                  currentEntity;                //!< reference to the currently used StoryEntity
37    std::list<StoryEntity*>       storyEntities;                //!< list of story entities
38};
39
40
41#endif /* _CAMPAIGN_DATA_H */
42
Note: See TracBrowser for help on using the repository browser.