From 9330b50231cb038295681874c3060aa97689f31d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 17 Mar 2011 22:07:11 +0200 Subject: Move direction calucaltion to Being method. --- src/being.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/being.h') 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. -- cgit v1.2.3-60-g2f50