Last change
on this file since 9717 was
9715,
checked in by bensch, 18 years ago
|
renamed newclassid to classid and newobjectlist to objectlist
|
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 | |
---|
12 | class TiXmlElement; |
---|
13 | |
---|
14 | |
---|
15 | |
---|
16 | //! A class representing a mission goal to kill a specific amount of a specific object type |
---|
17 | class 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.