Last change
on this file since 5965 was
5965,
checked in by manuel, 18 years ago
|
many changes:
created generic weapon_power_up that can contain any kind of weapon
space_ship is now extendable and can pickup weapon_power_ups
|
File size:
596 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 | |
---|
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 | ClassID getWeaponID(); |
---|
23 | long getCapsNeeded(); |
---|
24 | |
---|
25 | private: |
---|
26 | void init(); |
---|
27 | void loadParams(const TiXmlElement* root); |
---|
28 | |
---|
29 | private: |
---|
30 | ClassID weaponID; |
---|
31 | long capsNeeded; |
---|
32 | }; |
---|
33 | |
---|
34 | #endif /* _WEAPON_POWER_UP_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.