diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-06-10 22:46:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-06-10 22:46:50 +0300 |
commit | b6df3c3999d4be067e7314e3887e583c13ad1624 (patch) | |
tree | f7f39237cbf1e08440882c295cf3d7a494a2585a /src/being.h | |
parent | 83a142e6917bed619aeb96e217850299eb2a63be (diff) | |
download | manaplus-b6df3c3999d4be067e7314e3887e583c13ad1624.tar.gz manaplus-b6df3c3999d4be067e7314e3887e583c13ad1624.tar.bz2 manaplus-b6df3c3999d4be067e7314e3887e583c13ad1624.tar.xz manaplus-b6df3c3999d4be067e7314e3887e583c13ad1624.zip |
add partial support for player looks.
Can get packets from server, but cant draw player.
Diffstat (limited to 'src/being.h')
-rw-r--r-- | src/being.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/being.h b/src/being.h index 6911f830b..e1ffaff31 100644 --- a/src/being.h +++ b/src/being.h @@ -429,7 +429,7 @@ class Being : public ActorSprite, public ConfigListener /** * Set Being's subtype (mostly for view for monsters and NPCs) */ - void setSubtype(const uint16_t subtype); + void setSubtype(const uint16_t subtype, const uint8_t look); const BeingInfo *getInfo() const A_WARN_UNUSED { return mInfo; } @@ -877,6 +877,11 @@ class Being : public ActorSprite, public ConfigListener void playSfx(const SoundInfo &sound, Being *const being, const bool main, const int x, const int y); + int getLook() + { return mLook; } + + void setLook(const int look); + static uint8_t genderToInt(const Gender sex) A_WARN_UNUSED; static Gender intToGender(uint8_t sex) A_WARN_UNUSED; @@ -1041,6 +1046,7 @@ class Being : public ActorSprite, public ConfigListener unsigned char mHairColor; Being *mPet; int mPetId; + int mLook; Being *mOwner; Particle *mSpecialParticle; }; |