Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 22, 2011, 3:05:26 PM (13 years ago)
Author:
dafrick
Message:

Cleaning up game immersion. Roughly documenting weapons module.

Location:
code/trunk/src/orxonox/worldentities/pawns
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/worldentities/pawns/Pawn.cc

    r8706 r8855  
    4747#include "weaponsystem/WeaponSet.h"
    4848
    49 
    5049namespace orxonox
    5150{
     
    256255
    257256*/
    258 
    259257    void Pawn::hit(Pawn* originator, const Vector3& force, float damage, float healthdamage, float shielddamage)
    260258    {
  • code/trunk/src/orxonox/worldentities/pawns/Pawn.h

    r8706 r8855  
    7575
    7676            inline float getShieldHealth()
    77             { return this->shieldHealth_; }
     77                { return this->shieldHealth_; }
    7878
    7979            inline void addShieldHealth(float amount)
    80             { this->setShieldHealth(this->shieldHealth_ + amount); }
     80                { this->setShieldHealth(this->shieldHealth_ + amount); }
    8181
    8282            inline bool hasShield()
    83             { return (this->getShieldHealth() > 0); }
     83                { return (this->getShieldHealth() > 0); }
    8484
    8585            virtual void setMaxShieldHealth(float maxshieldhealth);
     
    9898
    9999            inline void setShieldAbsorption(float shieldAbsorption)
    100             { this->shieldAbsorption_ = shieldAbsorption; }
     100                { this->shieldAbsorption_ = shieldAbsorption; }
    101101            inline float getShieldAbsorption()
    102             { return this->shieldAbsorption_; }
     102                { return this->shieldAbsorption_; }
    103103
    104104            // TODO: Rename to shieldRechargeRate
     
    112112
    113113            inline void resetReloadCountdown()
    114             { this->reloadWaitCountdown_ = 0; }
     114                { this->reloadWaitCountdown_ = 0; }
    115115
    116116            inline void startReloadCountdown()
    117             { this->reloadWaitCountdown_ = this->getReloadWaitTime(); } // TODO: Implement in Projectile.cc
     117                { this->reloadWaitCountdown_ = this->getReloadWaitTime(); } // TODO: Implement in Projectile.cc
    118118
    119119            virtual void decreaseReloadCountdownTime(float dt);
Note: See TracChangeset for help on using the changeset viewer.