summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-03 03:18:21 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-04 03:02:23 +0300
commitebecb0cf42f2066943908fa158ac91527e0e6629 (patch)
tree83dfe4650746e6b31803f7876ab3c0a50179a794 /src/being.h
parentfa21c1b65dbe91a1e6ac880db977416162f268df (diff)
downloadmanaverse-ebecb0cf42f2066943908fa158ac91527e0e6629.tar.gz
manaverse-ebecb0cf42f2066943908fa158ac91527e0e6629.tar.bz2
manaverse-ebecb0cf42f2066943908fa158ac91527e0e6629.tar.xz
manaverse-ebecb0cf42f2066943908fa158ac91527e0e6629.zip
Fix hair colors color if old and new hair using different paletes.
Also fix hair replace logic between hairs with different paletes.
Diffstat (limited to 'src/being.h')
-rw-r--r--src/being.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/being.h b/src/being.h
index 4e78f7eb9..8c1fc81f9 100644
--- a/src/being.h
+++ b/src/being.h
@@ -821,6 +821,17 @@ class Being : public ActorSprite, public ConfigListener
int getSpriteID(const int slot) const;
+ void setHairStyle(const unsigned int slot, const int id);
+
+ void setHairColor(const unsigned int slot,
+ const unsigned char color);
+
+ void setHairColor(const unsigned char color)
+ { mHairColor = color; }
+
+ unsigned char getHairColor() const
+ { return mHairColor; }
+
void recalcSpritesOrder();
static uint8_t genderToInt(const Gender sex);
@@ -911,6 +922,8 @@ class Being : public ActorSprite, public ConfigListener
std::vector<int> &slotRemap,
const int val) const;
+ void dumpSprites();
+
const Type mType;
/** Speech Bubble components */
@@ -971,6 +984,7 @@ class Being : public ActorSprite, public ConfigListener
bool mAway;
bool mInactive;
unsigned mNumber;
+ unsigned char mHairColor;
};
extern std::list<BeingCacheEntry*> beingInfoCache;