From 112d2ad1904051160822d1845d1418cca889c0d5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 14 Mar 2012 03:56:02 +0300 Subject: Add support for other gender. Fix per gender and race items separation. --- src/being.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/being.h') diff --git a/src/being.h b/src/being.h index 7ad2199ff..19b7ccbb7 100644 --- a/src/being.h +++ b/src/being.h @@ -68,7 +68,8 @@ enum Gender { GENDER_MALE = 0, GENDER_FEMALE = 1, - GENDER_UNSPECIFIED = 2 + GENDER_UNSPECIFIED = 2, + GENDER_OTHER = 3 }; @@ -101,8 +102,9 @@ class Being : public ActorSprite, public ConfigListener FLAG_SHOP = 1, FLAG_AWAY = 2, FLAG_INACTIVE = 4, + FLAG_GENDER_OTHER = 32, FLAG_GM = 64, - FLAG_GENDER = 128, + FLAG_GENDER_MALE = 128, FLAG_SPECIAL = 128 + 64 }; @@ -780,6 +782,10 @@ class Being : public ActorSprite, public ConfigListener std::string getRaceName() { return mRaceName; } + static int genderToInt(Gender sex); + + static Gender intToGender(int sex); + protected: /** * Sets the new path for this being. -- cgit v1.2.3-60-g2f50