summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-03-17 22:07:11 +0200
committerAndrei Karas <akaras@inbox.ru>2011-03-17 22:07:11 +0200
commit9330b50231cb038295681874c3060aa97689f31d (patch)
tree60283ab807e32b722ccade2a1c38646aeaaf89d1 /src/being.h
parentabeb003b88cc49ba70cdadd2e3adec6eca1751ec (diff)
downloadmanaplus-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.h4
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.