Changeset 5965 in orxonox.OLD for branches/powerups/src/world_entities/power_ups/weapon_power_up.h
- Timestamp:
- Dec 7, 2005, 3:45:26 PM (18 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/powerups/src/world_entities/power_ups/weapon_power_up.h
r5958 r5965 1 1 /*! 2 * @file laser_power_up.h3 * @brief A class representing a PowerUp in the world.2 * @file weapon_power_up.h 3 * @brief A class representing a PowerUp containing a weapon. 4 4 */ 5 5 6 #ifndef _ LASER_POWER_UP_H7 #define _ LASER_POWER_UP_H6 #ifndef _WEAPON_POWER_UP_H 7 #define _WEAPON_POWER_UP_H 8 8 9 9 #include "power_up.h" 10 #include "weapons/weapon.h" 10 11 11 12 /* FORWARD DEFINITION */ 12 class Material;13 13 14 class LaserPowerUp : public PowerUp {14 class WeaponPowerUp : public PowerUp { 15 15 16 17 LaserPowerUp();18 LaserPowerUp(const TiXmlElement* root);19 virtual ~ LaserPowerUp ();16 public: 17 WeaponPowerUp(); 18 WeaponPowerUp(const TiXmlElement* root); 19 virtual ~WeaponPowerUp (); 20 20 21 virtual void LaserPowerUp::collidesWith(WorldEntity* entity, const Vector& location);22 virtual void tick(float dt);23 virtual void draw() const;21 Weapon* getWeapon(); 22 ClassID getWeaponID(); 23 long getCapsNeeded(); 24 24 25 26 27 25 private: 26 void init(); 27 void loadParams(const TiXmlElement* root); 28 28 29 private: 30 Vector rotation; 31 float cycle; 32 33 Model* sphereModel; 34 Material* sphereMaterial; 29 private: 30 ClassID weaponID; 31 long capsNeeded; 35 32 }; 36 33 37 #endif /* _ LASER_POWER_UP_H */34 #endif /* _WEAPON_POWER_UP_H */
Note: See TracChangeset
for help on using the changeset viewer.