summaryrefslogtreecommitdiff
path: root/src/localplayer.h
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2007-03-19 16:52:44 +0000
committerDavid Athay <ko2fan@gmail.com>2007-03-19 16:52:44 +0000
commit3702c703ff49f7ca21c5fa6c789cab12cab282b9 (patch)
tree99760cf27b2cffed647d7ee765a7c1855dec7eb0 /src/localplayer.h
parenta6f43600f1a9e7b1f39ca0ea9068130b680e5a89 (diff)
downloadmana-client-3702c703ff49f7ca21c5fa6c789cab12cab282b9.tar.gz
mana-client-3702c703ff49f7ca21c5fa6c789cab12cab282b9.tar.bz2
mana-client-3702c703ff49f7ca21c5fa6c789cab12cab282b9.tar.xz
mana-client-3702c703ff49f7ca21c5fa6c789cab12cab282b9.zip
Added target cursor. Shows blue when target in range, and red when out of range.
Diffstat (limited to 'src/localplayer.h')
-rw-r--r--src/localplayer.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/localplayer.h b/src/localplayer.h
index f4ba3747..55e63d40 100644
--- a/src/localplayer.h
+++ b/src/localplayer.h
@@ -92,6 +92,16 @@ class LocalPlayer : public Player
void useItem(Item *item);
void dropItem(Item *item, int quantity);
void pickUp(FloorItem *item);
+
+ /**
+ * Sets the attack range.
+ */
+ void setAttackRange(int range) { mAttackRange = range; }
+
+ /**
+ * Gets the attack range.
+ */
+ int getAttackRange() const { return mAttackRange; }
/**
* Sents a trade request to the given being.
@@ -162,6 +172,8 @@ class LocalPlayer : public Player
Uint32 mXpForNextLevel, mJobXpForNextLevel;
Uint16 mHp, mMaxHp, mMp, mMaxMp;
Uint32 mGp;
+
+ Uint16 mAttackRange;
Uint32 mTotalWeight, mMaxWeight;