Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 10072 was 9869, checked in by bensch, 18 years ago

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

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{
[9869]18  ObjectListDeclaration(CampaignData);
[6402]19
[7370]20public:
21  CampaignData(const TiXmlElement* root);
22  virtual ~CampaignData();
[6402]23
[7370]24  virtual void loadParams(const TiXmlElement* root);
[6407]25
[7370]26  void addStoryEntity(StoryEntity* se);
[6402]27
[7370]28  StoryEntity* getFirstLevel();
29  StoryEntity* getNextLevel();
30  StoryEntity* getLevel(int storyID);
[6402]31
[7370]32  /** @param storyEntity the current entity to be set */
33  inline void setCurrentEntity(StoryEntity* storyEntity) { this->currentEntity = storyEntity; }
34  /** @return the current StoryEntity played*/
35  inline StoryEntity* getCurrentEntity() { return this->currentEntity; }
[6402]36
[7370]37private:
38  void loadDataDyn(const TiXmlElement* root);
[6402]39
[7370]40private:
41  StoryEntity*                  currentEntity;                //!< reference to the currently used StoryEntity
42  std::list<StoryEntity*>       storyEntities;                //!< list of story entities
[6402]43};
44
45
46#endif /* _CAMPAIGN_DATA_H */
47
Note: See TracBrowser for help on using the repository browser.