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