Changeset 7462 in orxonox.OLD for trunk/src/util/kill_target.h
- Timestamp:
- May 1, 2006, 3:21:40 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/kill_target.h
r7461 r7462 15 15 16 16 //! A class representing a mission goal to kill a specific amount of a specific object type 17 class KillTarget : public MissionGoal { 17 class KillTarget : public MissionGoal 18 { 18 19 19 public:20 KillTarget(const TiXmlElement* root);21 virtual ~KillTarget();20 public: 21 KillTarget(const TiXmlElement* root); 22 virtual ~KillTarget(); 22 23 23 virtual void loadParams(const TiXmlElement* root); 24 25 virtual MissionState checkMissionGoal(); 24 virtual void loadParams(const TiXmlElement* root); 26 25 27 26 28 protected: 27 void setNumberOfKills( int kills) { this->numberOfKills = kills; } 28 void setTartetClassID( int classID) { this->targetClassID = classID; } 29 29 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 30 37 }; 31 38
Note: See TracChangeset
for help on using the changeset viewer.