Changeset 4955 in orxonox.OLD for orxonox/trunk/src/world_entities/weapons/weapon.h
- Timestamp:
- Jul 25, 2005, 3:48:55 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/weapons/weapon.h
r4953 r4955 24 24 // FORWARD DECLARATION 25 25 class Projectile; 26 class Weapon ;26 class WeaponManager; 27 27 class Animation3D; 28 28 class TiXmlElement; … … 72 72 public: 73 73 // INITIALISATION // 74 Weapon ( );74 Weapon (WeaponManager* weaponManager = NULL); 75 75 Weapon(const TiXmlElement* root); 76 76 virtual ~Weapon (); … … 85 85 /////////////////// 86 86 87 /** @param weaponManager sets the WeaponManager for this Weapon (NULL if free))*/ 88 inline void setWeaponManager(WeaponManager* weaponManager) { this->weaponManager = weaponManager; }; 89 /** @returns the WeaponManager of this Weapon (or NULL if it is free) */ 90 inline WeaponManager* getWeaponManager() const { return this->weaponManager; }; 87 91 88 92 /** @returns true if the Weapon is Active (this is used to check if the weapon must be drawn)*/ … … 199 203 ClassID projectile; //!< the projectile used for this weapon (since they should be generated via macro and the FastFactory, only the ClassID must be known.) 200 204 FastFactory* projectileFactory; //!< A factory, that produces and handles the projectiles. 205 206 WeaponManager* weaponManager; //!< The weaponManager this weapon is connected to. if NULL it is assumed, that the weapon is freely connected to an entity without a binding WeaponManager. 201 207 }; 202 208
Note: See TracChangeset
for help on using the changeset viewer.