Changeset 8495 in orxonox.OLD for trunk/src/util
- Timestamp:
- Jun 15, 2006, 9:50:56 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/kill_target.cc
r7466 r8495 31 31 */ 32 32 KillTarget::KillTarget (const TiXmlElement* root) 33 : MissionGoal(root) 34 { 35 this->setClassID(CL_KILL_TARGET, "KillTarget"); 33 : MissionGoal(root) { 34 this->setClassID(CL_KILL_TARGET, "KillTarget"); 36 35 37 if( root != NULL)38 this->loadParams(root);36 if( root != NULL) 37 this->loadParams(root); 39 38 } 40 39 … … 43 42 * standard deconstructor 44 43 */ 45 KillTarget::~KillTarget () 46 { 47 44 KillTarget::~KillTarget () { 48 45 } 49 46 50 47 51 void KillTarget::loadParams(const TiXmlElement* root) 52 { 53 MissionGoal::loadParams(root); 48 void KillTarget::loadParams(const TiXmlElement* root) { 49 MissionGoal::loadParams(root); 54 50 55 LoadParam(root, "numberofkills", this, KillTarget, setNumberOfKills)56 57 LoadParam(root, "targetclassid", this, KillTarget, setTargetClassID)58 51 LoadParam(root, "numberofkills", this, KillTarget, setNumberOfKills) 52 .describe("sets the number of kills a target has to be killed"); 53 LoadParam(root, "targetclassid", this, KillTarget, setTargetClassID) 54 .describe("sets the targets class id"); 59 55 } 60 56 61 57 62 MissionState KillTarget::checkMissionGoal(float dt) 63 { 58 MissionState KillTarget::checkMissionGoal(float dt) {} 64 59 65 }66 67 68 69 70
Note: See TracChangeset
for help on using the changeset viewer.