summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-17 14:17:58 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-17 14:17:58 +0300
commitd9838926bee52d1ada15a59dce89d76813533480 (patch)
tree364caa629951a30b56419a59a3dbc4a68d3b7312 /src
parent53cc3c86f2b5040cec577145feff9db2c93bd268 (diff)
downloadmv-d9838926bee52d1ada15a59dce89d76813533480.tar.gz
mv-d9838926bee52d1ada15a59dce89d76813533480.tar.bz2
mv-d9838926bee52d1ada15a59dce89d76813533480.tar.xz
mv-d9838926bee52d1ada15a59dce89d76813533480.zip
Remove some useless methods from being.
Diffstat (limited to 'src')
-rw-r--r--src/being/being.cpp6
-rw-r--r--src/being/being.h15
2 files changed, 4 insertions, 17 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 472836140..7bf72b26f 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -1578,8 +1578,10 @@ void Being::logic()
if (mAction == BeingAction::MOVE || mNeedPosUpdate)
{
- const int xOffset = getXOffset();
- const int yOffset = getYOffset();
+ const int xOffset = getOffset(
+ BeingDirection::LEFT, BeingDirection::RIGHT);
+ const int yOffset = getOffset(
+ BeingDirection::UP, BeingDirection::DOWN);
int offset = xOffset;
if (!offset)
offset = yOffset;
diff --git a/src/being/being.h b/src/being/being.h
index 9f9f3992d..42fd65b86 100644
--- a/src/being/being.h
+++ b/src/being/being.h
@@ -136,25 +136,10 @@ class Being notfinal : public ActorSprite,
/**
* Makes this being take the next tile of its path.
- * TODO: Used by eAthena only?
*/
virtual void nextTile();
/**
- * Get the current X pixel offset.
- * TODO: Used by eAthena only?
- */
- int getXOffset() const A_WARN_UNUSED
- { return getOffset(BeingDirection::LEFT, BeingDirection::RIGHT); }
-
- /**
- * Get the current Y pixel offset.
- * TODO: Used by eAthena only?
- */
- int getYOffset() const A_WARN_UNUSED
- { return getOffset(BeingDirection::UP, BeingDirection::DOWN); }
-
- /**
* Creates a path for the being from current position to ex and ey
*/
void setDestination(const int dstX, const int dstY);