Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/util/kill_target.h @ 9489

Last change on this file since 9489 was 7464, checked in by patrick, 19 years ago

orxonox: mission goals get checked now, verbose output.

File size: 953 bytes
Line 
1/*!
2 * @file mission_goal.h
3 * @brief Definition of a killtarget mission goal
4*/
5
6#ifndef _KILL_TARGET_H
7#define _KILL_TARGET_H
8
9#include "mission_goal.h"
10
11
12class TiXmlElement;
13
14
15
16//! A class representing a mission goal to kill a specific amount of a specific object type
17class KillTarget : public MissionGoal
18{
19
20  public:
21    KillTarget(const TiXmlElement* root);
22    virtual ~KillTarget();
23
24    virtual void loadParams(const TiXmlElement* root);
25
26
27    void setNumberOfKills( int kills) { this->numberOfKills = kills; }
28    void setTargetClassID( int classID) { this->targetClassID = classID; }
29    void setTargetClassName( char* className) {}
30
31
32    virtual MissionState checkMissionGoal(float dt);
33
34
35  private:
36    int numberOfKills;                                                 //!< the amount of kills of this kind
37    int targetClassID;                                                 //!< id of the target class
38};
39
40#endif /* _KILL_TARGET_H */
Note: See TracBrowser for help on using the repository browser.