- Timestamp:
- May 2, 2011, 5:17:20 PM (14 years ago)
- Location:
- code/branches/gameimmersion/src/modules/weapons/projectiles
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gameimmersion/src/modules/weapons/projectiles/Projectile.cc
r8183 r8386 48 48 this->bDestroy_ = false; 49 49 this->owner_ = 0; 50 this->damage_ = 15; 50 this->damage_ = 115; 51 ///////////////////me 52 this->healthdamage_ = 0; 53 this->shielddamage_ = 0; 54 ///////////////////end me 51 55 52 56 // Get notification about collisions … … 139 143 if (victim) 140 144 { 141 victim->hit(this->owner_, contactPoint, this->damage_ );145 victim->hit(this->owner_, contactPoint, this->damage_, this->healthdamage_, this->shielddamage_); 142 146 victim->startReloadCountdown(); 143 147 } -
code/branches/gameimmersion/src/modules/weapons/projectiles/Projectile.h
r5929 r8386 50 50 51 51 inline void setDamage(float damage) 52 { this->damage_ = damage; }52 { this->damage_ = damage; COUT(3) << "DAMAGE-SET-FUNKTION WIRD AUFGERUFEN" << endl; } 53 53 inline float getDamage() const 54 54 { return this->damage_; } … … 58 58 { return this->owner_; } 59 59 60 ////////////////////me 61 62 inline void setHealthDamage(float healthdamage) 63 { this->healthdamage_ = healthdamage; } 64 inline float getHealthDamage() const 65 { return this->healthdamage_; } 66 67 inline void setShieldDamage(float shielddamage) 68 { this->shielddamage_ = shielddamage; COUT(3) << "SHIELDDAMAGE SET TO " << shielddamage << endl; } //ShieldDamage wird korrekt gesettet vom XML-File 69 inline float getShieldDamage() const 70 { return this->shielddamage_; } 71 72 ///////////////////end me 73 74 60 75 private: 61 76 WeakPtr<Pawn> owner_; 62 77 float lifetime_; 63 78 float damage_; 79 ///////me 80 float healthdamage_; 81 float shielddamage_; 82 ///////end me 64 83 bool bDestroy_; 65 84 Timer destroyTimer_;
Note: See TracChangeset
for help on using the changeset viewer.