Last change
on this file since 7956 was
7954,
checked in by patrick, 18 years ago
|
trunk: merged the network branche back to trunk.
|
File size:
724 bytes
|
Line | |
---|
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 | #include "weapons/weapon_manager.h" |
---|
12 | |
---|
13 | /* FORWARD DEFINITION */ |
---|
14 | |
---|
15 | class WeaponPowerUp : public PowerUp { |
---|
16 | |
---|
17 | public: |
---|
18 | WeaponPowerUp(const TiXmlElement* root = NULL); |
---|
19 | virtual ~WeaponPowerUp (); |
---|
20 | |
---|
21 | virtual void loadParams(const TiXmlElement* root); |
---|
22 | |
---|
23 | Weapon* getWeapon(); |
---|
24 | void setWeaponClass(const std::string& name); |
---|
25 | |
---|
26 | bool process(WeaponManager* manager); |
---|
27 | |
---|
28 | private: |
---|
29 | void init(); |
---|
30 | void newWeapon(); |
---|
31 | private: |
---|
32 | Weapon* weapon; |
---|
33 | const TiXmlElement* weaponXML; |
---|
34 | |
---|
35 | void createWeapon(); |
---|
36 | }; |
---|
37 | |
---|
38 | #endif /* _WEAPON_POWER_UP_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.