diff options
Diffstat (limited to 'src/game-server/combatcomponent.h')
-rw-r--r-- | src/game-server/combatcomponent.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/game-server/combatcomponent.h b/src/game-server/combatcomponent.h index 168c08d7..1a4f3102 100644 --- a/src/game-server/combatcomponent.h +++ b/src/game-server/combatcomponent.h @@ -31,11 +31,6 @@ class Entity; -/** - * Type definition for a list of hits - */ -typedef std::vector<unsigned> Hits; - class CombatComponent: public Component { public: @@ -50,9 +45,6 @@ public: void removeAttack(AttackInfo *attackInfo); Attacks &getAttacks(); - const Hits &getHitsTaken() const; - void clearHitsTaken(); - int performAttack(Entity &source, const Damage &dmg); virtual int damage(Entity &target, Entity *source, const Damage &damage); @@ -72,7 +64,6 @@ protected: Entity *mTarget; Attacks mAttacks; Attack *mCurrentAttack; // Last used attack - Hits mHitsTaken; //List of punches taken since last update. }; @@ -82,22 +73,6 @@ inline Attacks &CombatComponent::getAttacks() } /** - * Gets the damage list. - */ -inline const Hits &CombatComponent::getHitsTaken() const -{ - return mHitsTaken; -} - -/** - * Clears the damage list. - */ -inline void CombatComponent::clearHitsTaken() -{ - mHitsTaken.clear(); -} - -/** * Gets the attack id the being is currently performing. * For being, this is defaulted to the first one (1). */ |