diff options
author | David Athay <ko2fan@gmail.com> | 2009-05-18 18:42:33 +0100 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2009-05-18 18:42:33 +0100 |
commit | c3c5ff134ac2e31560b421d125b35a9a73a25e5c (patch) | |
tree | deeff273aa8f93f89ee9d4eba59cc1b6fdca1d4b /src/game-server/being.hpp | |
parent | 9bf793b93df88fb38c2f29d5ec7643d11899ef2f (diff) | |
download | manaserv-c3c5ff134ac2e31560b421d125b35a9a73a25e5c.tar.gz manaserv-c3c5ff134ac2e31560b421d125b35a9a73a25e5c.tar.bz2 manaserv-c3c5ff134ac2e31560b421d125b35a9a73a25e5c.tar.xz manaserv-c3c5ff134ac2e31560b421d125b35a9a73a25e5c.zip |
Added target combat
Diffstat (limited to 'src/game-server/being.hpp')
-rw-r--r-- | src/game-server/being.hpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/game-server/being.hpp b/src/game-server/being.hpp index 92957096..96af1092 100644 --- a/src/game-server/being.hpp +++ b/src/game-server/being.hpp @@ -205,7 +205,7 @@ class Being : public Actor /** * Performs an attack. */ - void performAttack(const Damage &, const AttackZone *attackZone); + void performAttack(const Damage &); /** * Sets the current action. @@ -278,10 +278,23 @@ class Being : public Actor */ static int directionToAngle(int direction); + /** + * Get Target + */ + Being* getTarget() const + { return mTarget; } + + /** + * Set Target + */ + void setTarget(Being *target) + { mTarget = target; } + protected: static const int TICKS_PER_HP_REGENERATION = 100; Action mAction; std::vector< Attribute > mAttributes; + Being *mTarget; private: Being(const Being &rhs); |