Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6756 in orxonox.OLD for trunk/src/world_entities/weapons


Ignore:
Timestamp:
Jan 26, 2006, 1:55:40 AM (19 years ago)
Author:
bensch
Message:

trunk: Burst Particles

Location:
trunk/src/world_entities/weapons
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/weapons/weapon.cc

    r6736 r6756  
    8686  this->soundSource = new SoundSource(this);       //< Every Weapon has exacty one SoundSource.
    8787  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.
    8890
    8991  this->projectile = CL_NULL;                      //< No Projectile Class is Connected to this weapon
  • trunk/src/world_entities/weapons/weapon.h

    r6736 r6756  
    125125    inline const Vector& getEmissionPoint() const { return this->emissionPoint.getAbsCoor(); };
    126126
     127    inline void setTarget(PNode* target) { this->target = target; };
     128
    127129    // STATE CHANGES //
    128130    /** @param state the State to time @param duration the duration of the State */
     
    207209    GLGuiBar*            energyWidget;
    208210
     211    PNode*               target;                           //!< A target for targeting Weapons.
     212
    209213    ////////////
    210214    // PHASES //
Note: See TracChangeset for help on using the changeset viewer.