Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Apr 27, 2006, 4:34:21 PM (18 years ago)
Author:
patrick
Message:

worked on game rules and mission goals

File:
1 edited

Legend:

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

    r7391 r7400  
    1010
    1111
     12class TiXmlElement;
     13
     14
     15typedef enum MissionState
     16{
     17  MS_ACCOMPLISHED = 0,
     18  MS_RUNNING,
     19  MS_FAILED,
     20
     21  MS_NUMBER
     22};
    1223
    1324
     
    1930  virtual ~MissionGoal();
    2031
     32  virtual void loadParams(const TiXmlElement* root);
    2133
    22  private:
     34  /** sets the mission description @param descrtiption: the string containing the description */
     35  inline void setMissionDescription(std::string description) { this->missionDescription = description; }
     36  /** gets the mission description @returns the string containing the description */
     37  inline std::string getMissionDescription() { return this->missionDescription; }
     38
     39  virtual MissionState checkMissionGoal() = 0;
     40
     41
     42 protected:
     43   // perhaps there will be more than one description soon: a long and short version for different parsts in the gui
     44   std::string      missionDescription;                                    //!< the text description of the mission
     45
     46   MissionState     missionState;                                          //!< the state of this mission
    2347
    2448};
Note: See TracChangeset for help on using the changeset viewer.