diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-03-17 22:07:11 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-03-17 22:07:11 +0200 |
commit | 9330b50231cb038295681874c3060aa97689f31d (patch) | |
tree | 60283ab807e32b722ccade2a1c38646aeaaf89d1 /src/being.h | |
parent | abeb003b88cc49ba70cdadd2e3adec6eca1751ec (diff) | |
download | manaplus-9330b50231cb038295681874c3060aa97689f31d.tar.gz manaplus-9330b50231cb038295681874c3060aa97689f31d.tar.bz2 manaplus-9330b50231cb038295681874c3060aa97689f31d.tar.xz manaplus-9330b50231cb038295681874c3060aa97689f31d.zip |
Move direction calucaltion to Being method.
Diffstat (limited to 'src/being.h')
-rw-r--r-- | src/being.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/being.h b/src/being.h index 1dc2fd8f8..7d4883ba6 100644 --- a/src/being.h +++ b/src/being.h @@ -652,6 +652,10 @@ class Being : public ActorSprite, public ConfigListener int getHP() { return mHP; } + Uint8 calcDirection(int dstX, int dstY) const; + + Uint8 calcDirection() const; + protected: /** * Sets the new path for this being. |