Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 7462 was 7462, checked in by patrick, 18 years ago

mission goals loadable

File size: 896 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 setTartetClassID( int classID) { this->targetClassID = classID; }
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
37};
38
39#endif /* _KILL_TARGET_H */
Note: See TracBrowser for help on using the repository browser.