summaryrefslogtreecommitdiff
path: root/src/resources/beinginfo.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-13 23:39:29 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-13 23:39:29 +0300
commit4ba35c456af28479b547f2ab2c0bd02c40c292f6 (patch)
tree007ba5942a6e9a62ee64f9b85e21cc5780eceae4 /src/resources/beinginfo.h
parent2c302cc6cb54881fbe354cc9d5a9997788f63e56 (diff)
downloadmanaverse-4ba35c456af28479b547f2ab2c0bd02c40c292f6.tar.gz
manaverse-4ba35c456af28479b547f2ab2c0bd02c40c292f6.tar.bz2
manaverse-4ba35c456af28479b547f2ab2c0bd02c40c292f6.tar.xz
manaverse-4ba35c456af28479b547f2ab2c0bd02c40c292f6.zip
Add npc attribute what allow or prevent removing npc after out of sight.
New npc attribute: allowDelete
Diffstat (limited to 'src/resources/beinginfo.h')
-rw-r--r--src/resources/beinginfo.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/resources/beinginfo.h b/src/resources/beinginfo.h
index 3429515e0..ad5f35a85 100644
--- a/src/resources/beinginfo.h
+++ b/src/resources/beinginfo.h
@@ -311,6 +311,12 @@ class BeingInfo final
int getAttackDirectionType() const A_WARN_UNUSED
{ return mAttackDirectionType; }
+ void setAllowDelete(const bool b)
+ { mAllowDelete = b; }
+
+ int getAllowDelete() const A_WARN_UNUSED
+ { return mAllowDelete; }
+
void setColorsList(const std::string &name);
std::string getColor(const ItemColor idx) const A_WARN_UNUSED;
@@ -365,6 +371,7 @@ class BeingInfo final
int mAttackDirectionType;
bool mStaticMaxHP;
bool mTargetSelection;
+ bool mAllowDelete;
};
typedef std::map<BeingTypeId, BeingInfo*> BeingInfos;