Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 22, 2006, 9:36:55 AM (17 years ago)
Author:
nicolasc
Message:

defined emissionPoint as array, update get/set function, kept old as fallback

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/weapons/weapon.h

    r10136 r10140  
    140140
    141141    // EMISSION
     142    /** keeping old functions*/
     143    void setEmissionPoint(const Vector& point, int barrel);
    142144    void setEmissionPoint(const Vector& point);
    143145    /** @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); };
    144147    inline void setEmissionPoint(float x, float y, float z) { this->setEmissionPoint(Vector(x, y, z)); };
    145148    /** @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
    147152
    148153    inline void setDefaultTarget(PNode* defaultTarget) { this->defaultTarget = defaultTarget; };
     
    253258    OrxSound::SoundBuffer  soundBuffers[WA_ACTION_COUNT];   //!< SoundBuffers for all actions @see WeaponAction.
    254259
    255     PNode                  emissionPoint;                   //!< The point, where the projectiles are emitted. (this is coppled with the Weapon by default)
     260    PNode**                emissionPoint;                   //!< The point, where the projectiles are emitted. (this is coppled with the Weapon by default)
    256261
    257262    bool                   hideInactive;                    //!< Hides the Weapon if it is inactive
Note: See TracChangeset for help on using the changeset viewer.