summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-10-10 01:36:09 +0300
committerAndrei Karas <akaras@inbox.ru>2011-10-10 01:36:09 +0300
commit994ce665a9a32899a0f7efadf1253faa9a3cdbed (patch)
treeb46d2bbf36d85143c95f35c987817ca3f1d25fab /src/being.h
parent2d449d99cc4b42faf246bd24a87ec76da1363e41 (diff)
downloadplus-994ce665a9a32899a0f7efadf1253faa9a3cdbed.tar.gz
plus-994ce665a9a32899a0f7efadf1253faa9a3cdbed.tar.bz2
plus-994ce665a9a32899a0f7efadf1253faa9a3cdbed.tar.xz
plus-994ce665a9a32899a0f7efadf1253faa9a3cdbed.zip
Add support for reading monsters attack range.
Tmw server not supported.
Diffstat (limited to 'src/being.h')
-rw-r--r--src/being.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/being.h b/src/being.h
index 90bfcfb54..9b38e1479 100644
--- a/src/being.h
+++ b/src/being.h
@@ -755,6 +755,18 @@ class Being : public ActorSprite, public ConfigListener
bool isShopEnabled()
{ return mShop; }
+ /**
+ * Sets the attack range.
+ */
+ void setAttackRange(int range)
+ { mAttackRange = range; }
+
+ void attack(Being *target = NULL, bool keep = false,
+ bool dontChangeEquipment = false);
+
+ void attack2(Being *target = NULL, bool keep = false,
+ bool dontChangeEquipment = false);
+
protected:
/**
* Sets the new path for this being.
@@ -823,6 +835,7 @@ class Being : public ActorSprite, public ConfigListener
Party *mParty;
bool mIsGM;
+ int mAttackRange;
private: