Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/vs-enhencements/src/util/kill_target.h @ 10676

Last change on this file since 10676 was 9869, checked in by bensch, 18 years ago

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

File size: 990 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  ObjectListDeclaration(KillTarget);
20
21  public:
22    KillTarget(const TiXmlElement* root);
23    virtual ~KillTarget();
24
25    virtual void loadParams(const TiXmlElement* root);
26
27
28    void setNumberOfKills( int kills) { this->numberOfKills = kills; }
29    void setTargetClassID( int classID) { this->targetClassID = classID; }
30    void setTargetClassName( char* className) {}
31
32
33    virtual MissionState checkMissionGoal(float dt);
34
35
36  private:
37    int numberOfKills;                                                 //!< the amount of kills of this kind
38    int targetClassID;                                                 //!< id of the target class
39};
40
41#endif /* _KILL_TARGET_H */
Note: See TracBrowser for help on using the repository browser.