Changeset 10140 in orxonox.OLD for branches/playability/src/world_entities/weapons/weapon.h
- Timestamp:
- Dec 22, 2006, 9:36:55 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/weapons/weapon.h
r10136 r10140 140 140 141 141 // EMISSION 142 /** keeping old functions*/ 143 void setEmissionPoint(const Vector& point, int barrel); 142 144 void setEmissionPoint(const Vector& point); 143 145 /** @see void setEmissionPoint(const Vector& point); */ 146 inline void setEmissionPoint(float x, float y, float z, int barrel) { this->setEmissionPoint(Vector(x, y, z), barrel); }; 144 147 inline void setEmissionPoint(float x, float y, float z) { this->setEmissionPoint(Vector(x, y, z)); }; 145 148 /** @returns the absolute Position of the EmissionPoint */ 146 inline const Vector& getEmissionPoint() const { return this->emissionPoint.getAbsCoor(); }; 149 inline const Vector& getEmissionPoint(int barrel) const { return this->emissionPoint[barrel]->getAbsCoor(); }; 150 inline const Vector& getEmissionPoint() const { return this->emissionPoint[0]->getAbsCoor(); }; 151 147 152 148 153 inline void setDefaultTarget(PNode* defaultTarget) { this->defaultTarget = defaultTarget; }; … … 253 258 OrxSound::SoundBuffer soundBuffers[WA_ACTION_COUNT]; //!< SoundBuffers for all actions @see WeaponAction. 254 259 255 PNode 260 PNode** emissionPoint; //!< The point, where the projectiles are emitted. (this is coppled with the Weapon by default) 256 261 257 262 bool hideInactive; //!< Hides the Weapon if it is inactive
Note: See TracChangeset
for help on using the changeset viewer.