From 35e024b85a5448cba235fa400f9412fd4e289ec0 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Wed, 9 Jun 2010 13:37:16 -0600 Subject: Fix dead Beings not being removed using tmwAthena Rename mWalkTime to mActionTime in Being and have Being manage death. Reviewed-by: 4144 --- src/being.h | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'src/being.h') diff --git a/src/being.h b/src/being.h index 4e7016c1..75bb6c22 100644 --- a/src/being.h +++ b/src/being.h @@ -121,19 +121,15 @@ class Being : public ActorSprite, public ConfigListener void clearPath(); /** - * Returns the walk time. - * Used to know which frame to display and trigger - * the next Tile step. - * TODO: Used by eAthena only? + * Returns the time spent in the current action. */ - int getWalkTime() const { return mWalkTime; } + int getActionTime() const { return mActionTime; } /** - * Set the current WalkTime value. - * TODO: Used by eAthena only? + * Set the current action time. * @see Ea::BeingHandler that set it to tick time. */ - void setWalkTime(int walkTime) { mWalkTime = walkTime; } + void setActionTime(int actionTime) { mActionTime = actionTime; } /** * Makes this being take the next tile of its path. @@ -510,10 +506,7 @@ class Being : public ActorSprite, public ConfigListener BeingInfo *mInfo; - /** Used to trigger the nextStep (walking on next Tile) - * TODO: Used by eAthena only? - */ - int mWalkTime; + int mActionTime; /**< Time spent in current action */ int mEmotion; /**< Currently showing emotion */ int mEmotionTime; /**< Time until emotion disappears */ -- cgit v1.2.3-70-g09d2