Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

branch compiles again. factory problems solved

File size: 650 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
24protected:
25  void hide();
26
27private:
28  void init();
29  void loadParams(const TiXmlElement* root);
30private:
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.