Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/powerups/src/world_entities/power_ups/weapon_power_up.h @ 5973

Last change on this file since 5973 was 5973, checked in by manuel, 18 years ago

needs fix in weapon_powert_up.cc (fabricate from string)

File size: 623 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
14class WeaponPowerUp : public PowerUp {
15
16public:
17  WeaponPowerUp();
18  WeaponPowerUp(const TiXmlElement* root);
19  virtual ~WeaponPowerUp ();
20
21  Weapon* getWeapon();
22  void setWeaponClass(const char* name);
23
24private:
25  void init();
26  void loadParams(const TiXmlElement* root);
27private:
28  Weapon* weapon;
29  const TiXmlElement* weaponXML;
30
31  void createWeapon();
32};
33
34#endif /* _WEAPON_POWER_UP_H */
Note: See TracBrowser for help on using the repository browser.