Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7462 in orxonox.OLD for trunk/src/util/kill_target.h


Ignore:
Timestamp:
May 1, 2006, 3:21:40 PM (18 years ago)
Author:
patrick
Message:

mission goals loadable

File:
1 edited

Legend:

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

    r7461 r7462  
    1515
    1616//! A class representing a mission goal to kill a specific amount of a specific object type
    17 class KillTarget : public MissionGoal {
     17class KillTarget : public MissionGoal
     18{
    1819
    19  public:
    20   KillTarget(const TiXmlElement* root);
    21   virtual ~KillTarget();
     20  public:
     21    KillTarget(const TiXmlElement* root);
     22    virtual ~KillTarget();
    2223
    23   virtual void loadParams(const TiXmlElement* root);
    24 
    25   virtual MissionState checkMissionGoal();
     24    virtual void loadParams(const TiXmlElement* root);
    2625
    2726
    28  protected:
     27    void setNumberOfKills( int kills) { this->numberOfKills = kills; }
     28    void setTartetClassID( int classID) { this->targetClassID = classID; }
    2929
     30
     31    virtual MissionState checkMissionGoal();
     32
     33
     34  private:
     35    int numberOfKills;                                                 //!< the amount of kills of this kind
     36    int targetClassID;                                                 //!< id of the target class
    3037};
    3138
Note: See TracChangeset for help on using the changeset viewer.