Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox: mission goals get checked now, verbose output.

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