summaryrefslogtreecommitdiff
path: root/src/being/actorsprite.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-26 13:30:24 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-26 13:30:24 +0300
commit1a9330a5f6cd753b4155ac74db104cb0ffa095c9 (patch)
treed3d24cfc1101b99e2055a9330b2e31522512f0c3 /src/being/actorsprite.h
parent793e570728840dd788f9104e54828c1530016d61 (diff)
downloadmanaplus-1a9330a5f6cd753b4155ac74db104cb0ffa095c9.tar.gz
manaplus-1a9330a5f6cd753b4155ac74db104cb0ffa095c9.tar.bz2
manaplus-1a9330a5f6cd753b4155ac74db104cb0ffa095c9.tar.xz
manaplus-1a9330a5f6cd753b4155ac74db104cb0ffa095c9.zip
Allow open cart window only if cart status effect enabled.
Diffstat (limited to 'src/being/actorsprite.h')
-rw-r--r--src/being/actorsprite.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/being/actorsprite.h b/src/being/actorsprite.h
index b9889490c..02a17ea07 100644
--- a/src/being/actorsprite.h
+++ b/src/being/actorsprite.h
@@ -171,6 +171,12 @@ class ActorSprite notfinal : public CompoundSprite, public Actor
bool getPoison() const A_WARN_UNUSED
{ return mPoison; }
+ void setHaveCart(const bool b)
+ { mHaveCart = b; }
+
+ bool getHaveCart() const A_WARN_UNUSED
+ { return mHaveCart; }
+
protected:
/**
* Notify self that the stun mode has been updated. Invoked by
@@ -232,6 +238,7 @@ class ActorSprite notfinal : public CompoundSprite, public Actor
/** Reset particle status effects on next redraw? */
bool mMustResetParticles;
bool mPoison;
+ bool mHaveCart;
};
#endif // BEING_ACTORSPRITE_H