From f612e40c96f370282971d3a5795da4fb8d99bea1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 29 Jul 2015 02:06:59 +0300 Subject: Add bages db. Add badges support for parties. --- src/being/being.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/being/being.h') diff --git a/src/being/being.h b/src/being/being.h index e58cbcb90..2f8796ba7 100644 --- a/src/being/being.h +++ b/src/being/being.h @@ -227,8 +227,7 @@ class Being notfinal : public ActorSprite, /** * Sets the name of the party the being is in. Shown in BeingPopup. */ - void setPartyName(const std::string &name) - { mPartyName = name; } + void setPartyName(const std::string &name); const std::string &getPartyName() const A_WARN_UNUSED { return mPartyName; } @@ -955,11 +954,14 @@ class Being notfinal : public ActorSprite, void setDefaultNameColor(const UserColorIdT defaultColor); + void updateBadgesCount(); + static int getDefaultEffectId(const AttackTypeT &type); BeingInfo *mInfo; AnimatedSprite *mEmotionSprite; AnimatedSprite *mAnimationEffect; + AnimatedSprite *mPartyBadge; AnimatedSprite *mTeamBadge; std::string mSpriteAction; @@ -1124,6 +1126,7 @@ class Being notfinal : public ActorSprite, int mAreaSize; uint16_t mTeamId; uint16_t mLook; + uint16_t mBadgesCount; unsigned char mHairColor; bool mErased; bool mEnemy; -- cgit v1.2.3-70-g09d2