diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-03 03:18:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-04 03:02:23 +0300 |
commit | ebecb0cf42f2066943908fa158ac91527e0e6629 (patch) | |
tree | 83dfe4650746e6b31803f7876ab3c0a50179a794 /src/being.h | |
parent | fa21c1b65dbe91a1e6ac880db977416162f268df (diff) | |
download | plus-ebecb0cf42f2066943908fa158ac91527e0e6629.tar.gz plus-ebecb0cf42f2066943908fa158ac91527e0e6629.tar.bz2 plus-ebecb0cf42f2066943908fa158ac91527e0e6629.tar.xz plus-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.h | 14 |
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; |