From b6df3c3999d4be067e7314e3887e583c13ad1624 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 10 Jun 2013 22:46:50 +0300 Subject: add partial support for player looks. Can get packets from server, but cant draw player. --- src/being.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/being.h') 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; }; -- cgit v1.2.3-70-g09d2