Changeset 6756 in orxonox.OLD for trunk/src/world_entities/weapons
- Timestamp:
- Jan 26, 2006, 1:55:40 AM (19 years ago)
- Location:
- trunk/src/world_entities/weapons
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/weapon.cc
r6736 r6756 86 86 this->soundSource = new SoundSource(this); //< Every Weapon has exacty one SoundSource. 87 87 this->emissionPoint.setParent(this); //< One EmissionPoint, that is a PNode connected to the weapon. You can set this to the exitting point of the Projectiles 88 89 this->target = NULL; //< Nothing is Targeted by default. 88 90 89 91 this->projectile = CL_NULL; //< No Projectile Class is Connected to this weapon -
trunk/src/world_entities/weapons/weapon.h
r6736 r6756 125 125 inline const Vector& getEmissionPoint() const { return this->emissionPoint.getAbsCoor(); }; 126 126 127 inline void setTarget(PNode* target) { this->target = target; }; 128 127 129 // STATE CHANGES // 128 130 /** @param state the State to time @param duration the duration of the State */ … … 207 209 GLGuiBar* energyWidget; 208 210 211 PNode* target; //!< A target for targeting Weapons. 212 209 213 //////////// 210 214 // PHASES //
Note: See TracChangeset
for help on using the changeset viewer.