summaryrefslogtreecommitdiff
path: root/src/localplayer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/localplayer.h')
-rw-r--r--src/localplayer.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/localplayer.h b/src/localplayer.h
index 9e2139c2..8e5795c3 100644
--- a/src/localplayer.h
+++ b/src/localplayer.h
@@ -92,7 +92,7 @@ class LocalPlayer : public Being
/**
* Gets the attack range.
*/
- int getAttackRange()
+ int getAttackRange() const
{ return mAttackRange; }
void attack(Being *target = NULL, bool keep = false);
@@ -147,9 +147,9 @@ class LocalPlayer : public Being
void setGotoTarget(Being *target);
/**
- * Returns whether the target is in range to attack
+ * Returns whether the target is in range (in pixels).
*/
- bool withinAttackRange(Being *target);
+ bool withinRange(Actor *target, int range) const;
void toggleSit();
void emote(uint8_t emotion);