summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-14 03:56:02 +0300
committerAndrei Karas <akaras@inbox.ru>2012-03-14 04:06:13 +0300
commit112d2ad1904051160822d1845d1418cca889c0d5 (patch)
tree9731934d9dc367f931c028158f3d26a670e18feb /src/being.h
parent02e9a62ce9a0f288804bfa2aa59c3a84b0376c4a (diff)
downloadmv-112d2ad1904051160822d1845d1418cca889c0d5.tar.gz
mv-112d2ad1904051160822d1845d1418cca889c0d5.tar.bz2
mv-112d2ad1904051160822d1845d1418cca889c0d5.tar.xz
mv-112d2ad1904051160822d1845d1418cca889c0d5.zip
Add support for other gender.
Fix per gender and race items separation.
Diffstat (limited to 'src/being.h')
-rw-r--r--src/being.h10
1 files changed, 8 insertions, 2 deletions
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.