Rev | Line | |
---|
[6113] | 1 | /*! |
---|
| 2 | * @file weapon_power_up.h |
---|
| 3 | * @brief A class representing a PowerUp containing a weapon. |
---|
| 4 | */ |
---|
| 5 | |
---|
| 6 | #ifndef _WEAPON_POWER_UP_H |
---|
| 7 | #define _WEAPON_POWER_UP_H |
---|
| 8 | |
---|
| 9 | #include "power_up.h" |
---|
| 10 | #include "weapons/weapon.h" |
---|
| 11 | |
---|
| 12 | /* FORWARD DEFINITION */ |
---|
| 13 | |
---|
| 14 | class WeaponPowerUp : public PowerUp { |
---|
| 15 | |
---|
| 16 | public: |
---|
| 17 | WeaponPowerUp(); |
---|
| 18 | WeaponPowerUp(const TiXmlElement* root); |
---|
| 19 | virtual ~WeaponPowerUp (); |
---|
| 20 | |
---|
| 21 | Weapon* getWeapon(); |
---|
| 22 | void setWeaponClass(const char* name); |
---|
| 23 | |
---|
| 24 | protected: |
---|
| 25 | virtual void respawn(); |
---|
| 26 | |
---|
| 27 | private: |
---|
| 28 | void init(); |
---|
| 29 | void loadParams(const TiXmlElement* root); |
---|
| 30 | private: |
---|
| 31 | Weapon* weapon; |
---|
| 32 | const TiXmlElement* weaponXML; |
---|
| 33 | |
---|
| 34 | void createWeapon(); |
---|
| 35 | }; |
---|
| 36 | |
---|
| 37 | #endif /* _WEAPON_POWER_UP_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.