Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7463 in orxonox.OLD for trunk/src/util/mission_goal.h


Ignore:
Timestamp:
May 1, 2006, 4:03:01 PM (19 years ago)
Author:
patrick
Message:

mission goals now get loaded correctly with all attributes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/mission_goal.h

    r7461 r7463  
    3232  virtual void loadParams(const TiXmlElement* root);
    3333
     34  /** sets the mission name @param missionName: the string containig the mission title */
     35  inline void setMissionName(const std::string& missionName) { this->missionName = missionName; }
     36  /** @return the mission title */
     37  inline std::string getMissionName() { return this->missionName; }
     38
    3439  /** sets the mission description @param descrtiption: the string containing the description */
    35   inline void setMissionDescription(std::string description) { this->missionDescription = description; }
     40  inline void setMissionDescription(const std::string& description) { this->missionDescription = description; }
    3641  /** gets the mission description @returns the string containing the description */
    3742  inline std::string getMissionDescription() { return this->missionDescription; }
     43
     44  /** sets the mission state @param missionState  state of the mission*/
     45  inline void setMissionState(MissionState state) { this->missionState = state; }
     46  /** @returns the current mission state */
     47  inline MissionState getMissionState() { return this->missionState; }
    3848
    3949  virtual MissionState checkMissionGoal() = 0;
     
    4151
    4252 protected:
     53   std::string      missionName;                                           //!< the title of the mission
    4354   // perhaps there will be more than one description soon: a long and short version for different parsts in the gui
    4455   std::string      missionDescription;                                    //!< the text description of the mission
Note: See TracChangeset for help on using the changeset viewer.