Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 26, 2006, 1:29:09 PM (17 years ago)
Author:
nicolasc
Message:

fixed get*Damage() return values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/projectiles/projectile.h

    r9959 r9960  
    2323    Projectile ();
    2424    virtual ~Projectile ();
     25
     26    /** @brief Constructor with variable passing*/
     27    Projectile (float pDamage, float eDamage, PNode* target);
     28    /** @brief for void construction; setting values later - needed for FastFactory*/
     29    virtual void initialize(float pDamage, float eDamage, PNode* target);
    2530
    2631    void setFlightDirection(const Quaternion& flightDirection);
     
    5459    inline bool tickLifeCycle(float dt ) { this->lifeCycle += dt/this->lifeSpan;  return(unlikely(this->lifeCycle >= 1)); }
    5560
    56     inline int getPhysDamage() { return this->physDamage; };
    57     inline int getElecDamage() { return this->elecDamage; };
     61    inline float getPhysDamage() { return this->physDamage; };
     62    inline float getElecDamage() { return this->elecDamage; };
    5863
    5964  protected:
Note: See TracChangeset for help on using the changeset viewer.