summaryrefslogtreecommitdiff
path: root/src/resources/beinginfo.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-08 00:43:48 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-08 00:43:48 +0300
commitdbc3b324a0c5dcb1a0ee29b289e71423a06e85fd (patch)
treef7cda00f7415c35fb2a9e4466a751d18852070bf /src/resources/beinginfo.h
parentcbb805a1922e3423fdaae88242835fb717a903bf (diff)
downloadManaVerse-dbc3b324a0c5dcb1a0ee29b289e71423a06e85fd.tar.gz
ManaVerse-dbc3b324a0c5dcb1a0ee29b289e71423a06e85fd.tar.bz2
ManaVerse-dbc3b324a0c5dcb1a0ee29b289e71423a06e85fd.tar.xz
ManaVerse-dbc3b324a0c5dcb1a0ee29b289e71423a06e85fd.zip
Add to npc option targetSelection to allow/disallow npc selection.
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 4aa8f96c8..227bc686e 100644
--- a/src/resources/beinginfo.h
+++ b/src/resources/beinginfo.h
@@ -146,6 +146,12 @@ class BeingInfo
void setStaticMaxHP(bool n)
{ mStaticMaxHP = n; }
+ void setTargetSelection(bool n)
+ { mTargetSelection = n; }
+
+ bool isTargetSelection() const
+ { return mTargetSelection; }
+
static void clear();
private:
@@ -160,6 +166,7 @@ class BeingInfo
int mTargetOffsetY;
int mMaxHP;
bool mStaticMaxHP;
+ bool mTargetSelection;
};
typedef std::map<int, BeingInfo*> BeingInfos;