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