summaryrefslogtreecommitdiff
path: root/src/localplayer.h
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-03-17 02:05:52 +0100
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-03-17 02:05:52 +0100
commit45c3f943b42423dbe162bfac4a57cad013ba0630 (patch)
tree0bb0caaa15af42f1d2c3bc14061202aacf9bee6d /src/localplayer.h
parentfe153c7b2598262281477882a2ef82400b24f5b5 (diff)
downloadmana-45c3f943b42423dbe162bfac4a57cad013ba0630.tar.gz
mana-45c3f943b42423dbe162bfac4a57cad013ba0630.tar.bz2
mana-45c3f943b42423dbe162bfac4a57cad013ba0630.tar.xz
mana-45c3f943b42423dbe162bfac4a57cad013ba0630.zip
Simplified the get/setAttackRange() functions as requested.
The attack range is still hardcoded for Manaserv as long as generic equipment handling hasn't been implemented.
Diffstat (limited to 'src/localplayer.h')
-rw-r--r--src/localplayer.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/localplayer.h b/src/localplayer.h
index 696211ee..01f31e01 100644
--- a/src/localplayer.h
+++ b/src/localplayer.h
@@ -58,6 +58,11 @@ enum
PICKUP_DROP_STEAL,
};
+/**
+ * Attack range not set value
+ */
+enum { ATTACK_RANGE_NOT_SET = -1 };
+
/**
* The local player character.
@@ -116,7 +121,9 @@ class LocalPlayer : public Being
/**
* Gets the attack range.
*/
- int getAttackRange();
+ int getAttackRange()
+ { return mAttackRange; }
+
void attack(Being *target = NULL, bool keep = false);
void setGMLevel(int level);