Changeset 7163 for code/trunk/src/orxonox/worldentities/pawns/Pawn.h
- Timestamp:
- Aug 11, 2010, 8:55:13 AM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/worldentities/pawns/Pawn.h
r6711 r7163 50 50 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 51 51 virtual void tick(float dt); 52 void registerVariables();53 52 54 53 inline bool isAlive() const … … 73 72 { return this->initialHealth_; } 74 73 74 inline void setShieldHealth(float shieldHealth) 75 { this->shieldHealth_ = shieldHealth; } 76 inline float getShieldHealth() 77 { return this->shieldHealth_; } 78 79 inline void setShieldAbsorption(float shieldAbsorption) 80 { this->shieldAbsorption_ = shieldAbsorption; } 81 inline float getShieldAbsorption() 82 { return this->shieldAbsorption_; } 83 75 84 inline ControllableEntity* getLastHitOriginator() const 76 85 { return this->lastHitOriginator_; } … … 91 100 void addWeaponPackXML(WeaponPack * wPack); 92 101 WeaponPack * getWeaponPack(unsigned int index) const; 102 103 virtual void addedWeaponPack(WeaponPack* wPack) {} 93 104 94 105 inline const WorldEntity* getWorldEntity() const … … 116 127 Vector3 getAimPosition() 117 128 { return this->aimPosition_; } 118 129 119 130 virtual const Vector3& getCarrierPosition(void) 120 131 { return this->getWorldPosition(); }; … … 141 152 float maxHealth_; 142 153 float initialHealth_; 154 float shieldHealth_; 155 float shieldAbsorption_; // Has to be between 0 and 1 143 156 144 157 Pawn* lastHitOriginator_; … … 152 165 153 166 private: 167 void registerVariables(); 154 168 inline void setWeaponSystem(WeaponSystem* weaponsystem) 155 169 { this->weaponSystem_ = weaponsystem; }
Note: See TracChangeset
for help on using the changeset viewer.