diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-04-27 18:11:13 +0200 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-08-26 22:56:46 +0200 |
commit | 960d40d819afb65387469591bdb02e6819d72294 (patch) | |
tree | 773a697bdd12ae28a717bf6087c3109fbfc1fb35 /src/game-server/combatcomponent.h | |
parent | 163c438e4f373989a8a82e47f38ac67d70b5a1bf (diff) | |
download | manaserv-960d40d819afb65387469591bdb02e6819d72294.tar.gz manaserv-960d40d819afb65387469591bdb02e6819d72294.tar.bz2 manaserv-960d40d819afb65387469591bdb02e6819d72294.tar.xz manaserv-960d40d819afb65387469591bdb02e6819d72294.zip |
[Abilities] Added a add_hit_taken bind
This allows to display hit messages in the client for abilities
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). */ |