summaryrefslogtreecommitdiff
path: root/src/localplayer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/localplayer.h')
-rw-r--r--src/localplayer.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/localplayer.h b/src/localplayer.h
index 64e37fee..0d7b6077 100644
--- a/src/localplayer.h
+++ b/src/localplayer.h
@@ -130,6 +130,8 @@ class LocalPlayer : public Being
virtual void setDestination(int x, int y);
virtual void setDestination(const Vector &dest)
{ setDestination((int)dest.x, (int)dest.y); }
+ virtual void setDestination(const Position &dest)
+ { setDestination(dest.x, dest.y); }
/**
* Sets a new direction to keep walking in, when using the keyboard
@@ -149,6 +151,13 @@ class LocalPlayer : public Being
void setGotoTarget(Being *target);
/**
+ * Cancel a possible target destination in progress,
+ * but not the targeting.
+ */
+ void cancelGoToTarget()
+ { mGoingToTarget = mKeepAttacking = false; }
+
+ /**
* Returns whether the target is in range (in pixels).
*/
bool withinRange(Actor *target, int range) const;