From b50649ee5e28511df72cc3a08023747727c5b6f0 Mon Sep 17 00:00:00 2001 From: David Athay Date: Fri, 11 Apr 2008 14:12:30 +0000 Subject: Players now need to click on the monster sprites rather than the tile. Players will now move to the target before attacking it. --- src/localplayer.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/localplayer.h') diff --git a/src/localplayer.h b/src/localplayer.h index b19a0c3f..bdf43fff 100644 --- a/src/localplayer.h +++ b/src/localplayer.h @@ -160,6 +160,16 @@ class LocalPlayer : public Player */ void setWalkingDir(int dir); + /** + * Sets going to being to attack + */ + void setGotoTarget(Being *target); + + /** + * Returns whether the target is in range to attack + */ + bool withinAttackRange(Being *target); + void raiseAttribute(Attribute attr); void raiseSkill(Uint16 skillId); @@ -215,6 +225,7 @@ class LocalPlayer : public Player FloorItem *mPickUpTarget; bool mTrading; + bool mGoingToTarget; int mLastAction; /**< Time stamp of the last action, -1 if none. */ int mWalkingDir; /**< The direction the player is walking in. */ int mDestX; /**< X coordinate of destination. */ -- cgit v1.2.3-70-g09d2