Last change
on this file since 7650 was
7464,
checked in by patrick, 19 years ago
|
orxonox: mission goals get checked now, verbose output.
|
File size:
953 bytes
|
Rev | Line | |
---|
[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 | |
---|
| 12 | class TiXmlElement; |
---|
| 13 | |
---|
| 14 | |
---|
| 15 | |
---|
| 16 | //! A class representing a mission goal to kill a specific amount of a specific object type |
---|
[7462] | 17 | class 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.