summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-06-10 22:46:50 +0300
committerAndrei Karas <akaras@inbox.ru>2013-06-10 22:46:50 +0300
commitb6df3c3999d4be067e7314e3887e583c13ad1624 (patch)
treef7f39237cbf1e08440882c295cf3d7a494a2585a /src/being.h
parent83a142e6917bed619aeb96e217850299eb2a63be (diff)
downloadplus-b6df3c3999d4be067e7314e3887e583c13ad1624.tar.gz
plus-b6df3c3999d4be067e7314e3887e583c13ad1624.tar.bz2
plus-b6df3c3999d4be067e7314e3887e583c13ad1624.tar.xz
plus-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.h8
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;
};