Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7370 in orxonox.OLD for trunk/src/story_entities/campaign_data.h


Ignore:
Timestamp:
Apr 26, 2006, 1:31:01 AM (18 years ago)
Author:
bensch
Message:

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:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/story_entities/campaign_data.h

    r6874 r7370  
    1717{
    1818
    19   public:
    20     CampaignData(const TiXmlElement* root);
    21     virtual ~CampaignData();
     19public:
     20  CampaignData(const TiXmlElement* root);
     21  virtual ~CampaignData();
    2222
    23     virtual void loadParams(const TiXmlElement* root);
     23  virtual void loadParams(const TiXmlElement* root);
    2424
    25     void loadData(const TiXmlElement* root);
     25  void addStoryEntity(StoryEntity* se);
    2626
    27     void addStoryEntity(StoryEntity* se);
     27  StoryEntity* getFirstLevel();
     28  StoryEntity* getNextLevel();
     29  StoryEntity* getLevel(int storyID);
    2830
    29     StoryEntity* getFirstLevel();
    30     StoryEntity* getNextLevel();
    31     StoryEntity* getLevel(int storyID);
     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; }
    3235
    33     /** @param storyEntity the current entity to be set */
    34     inline void setCurrentEntity(StoryEntity* storyEntity) { this->currentEntity = storyEntity; }
    35     /** @return the current StoryEntity played*/
    36     inline StoryEntity* getCurrentEntity() { return this->currentEntity; }
     36private:
     37  void loadDataDyn(const TiXmlElement* root);
    3738
    38 
    39   private:
    40     StoryEntity*                  currentEntity;                //!< reference to the currently used StoryEntity
    41     std::list<StoryEntity*>       storyEntities;                //!< list of story entities
     39private:
     40  StoryEntity*                  currentEntity;                //!< reference to the currently used StoryEntity
     41  std::list<StoryEntity*>       storyEntities;                //!< list of story entities
    4242};
    4343
Note: See TracChangeset for help on using the changeset viewer.