Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/story_entities/campaign_data.h @ 8284

Last change on this file since 8284 was 7370, checked in by bensch, 19 years ago

orxonox/trunk: drawLists/tickLists are used, and made some TiXmlElement to const TiXmlElement, also fixed some bugs in the loadWorldEntities-functions from Gameworld and SipleGameMenu

File size: 1.1 KB
RevLine 
[6402]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
[6404]10#include "data_tank.h"
[6402]11#include <list>
12
13class StoryEntity;
14
15//! A class that contains the data of the Campaign object
[6404]16class CampaignData : public DataTank
[6402]17{
18
[7370]19public:
20  CampaignData(const TiXmlElement* root);
21  virtual ~CampaignData();
[6402]22
[7370]23  virtual void loadParams(const TiXmlElement* root);
[6407]24
[7370]25  void addStoryEntity(StoryEntity* se);
[6402]26
[7370]27  StoryEntity* getFirstLevel();
28  StoryEntity* getNextLevel();
29  StoryEntity* getLevel(int storyID);
[6402]30
[7370]31  /** @param storyEntity the current entity to be set */
32  inline void setCurrentEntity(StoryEntity* storyEntity) { this->currentEntity = storyEntity; }
33  /** @return the current StoryEntity played*/
34  inline StoryEntity* getCurrentEntity() { return this->currentEntity; }
[6402]35
[7370]36private:
37  void loadDataDyn(const TiXmlElement* root);
[6402]38
[7370]39private:
40  StoryEntity*                  currentEntity;                //!< reference to the currently used StoryEntity
41  std::list<StoryEntity*>       storyEntities;                //!< list of story entities
[6402]42};
43
44
45#endif /* _CAMPAIGN_DATA_H */
46
Note: See TracBrowser for help on using the repository browser.