diff options
Diffstat (limited to 'src/being.h')
-rw-r--r-- | src/being.h | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/src/being.h b/src/being.h index 26b4f8f9..e5068952 100644 --- a/src/being.h +++ b/src/being.h @@ -183,12 +183,15 @@ class Being : public Sprite, public ConfigListener #ifdef EATHENA_SUPPORT virtual void setDestination(Uint16 destX, Uint16 destY); #else - void setDestination(int x, int y); + /** + * Creates a path for the being from sx,sy to ex,ey + */ + void setDestination(int sx, int sy, int ex, int ey); /** - * Returns the destination for this being. + * Creates a path for the being from currect position to ex and ey */ - const Vector &getDestination() const { return mDest; } + void setDestination(int ex, int ey); /** * Adjusts course to expected start point. @@ -196,9 +199,9 @@ class Being : public Sprite, public ConfigListener void adjustCourse(int srcX, int srcY); /** - * Adjusts course to expected start and end points. + * Returns the destination for this being. */ - void adjustCourse(int srcX, int srcY, int destX, int destY); + const Vector &getDestination() const { return mDest; } #endif /** @@ -355,12 +358,8 @@ class Being : public Sprite, public ConfigListener /** * Returns the direction the being is facing. */ -#ifdef TMWSERV_SUPPORT SpriteDirection getSpriteDirection() const { return SpriteDirection(mSpriteDirection); } -#else - SpriteDirection getSpriteDirection() const; -#endif /** * Draws this being to the given graphics context. @@ -555,9 +554,7 @@ class Being : public Sprite, public ConfigListener int mId; /**< Unique sprite id */ Uint8 mDirection; /**< Facing direction */ -#ifdef TMWSERV_SUPPORT Uint8 mSpriteDirection; /**< Facing direction */ -#endif Map *mMap; /**< Map on which this being resides */ std::string mName; /**< Name of character */ SpriteIterator mSpriteIterator; |