Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 10527 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
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  ObjectListDeclaration(CampaignData);
19
20public:
21  CampaignData(const TiXmlElement* root);
22  virtual ~CampaignData();
23
24  virtual void loadParams(const TiXmlElement* root);
25
26  void addStoryEntity(StoryEntity* se);
27
28  StoryEntity* getFirstLevel();
29  StoryEntity* getNextLevel();
30  StoryEntity* getLevel(int storyID);
31
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; }
36
37private:
38  void loadDataDyn(const TiXmlElement* root);
39
40private:
41  StoryEntity*                  currentEntity;                //!< reference to the currently used StoryEntity
42  std::list<StoryEntity*>       storyEntities;                //!< list of story entities
43};
44
45
46#endif /* _CAMPAIGN_DATA_H */
47
Note: See TracBrowser for help on using the repository browser.