summaryrefslogtreecommitdiff
path: root/src/player.h
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2008-02-22 19:58:29 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2008-02-22 19:58:29 +0000
commitd3adc61aa4b4924f82d8cbc23bea26da7257da97 (patch)
treea332ee5ff920213ebfb558e646ba278885d1bdc3 /src/player.h
parent3d97d69ca9b0521aa0f49db0b739d50afc00318e (diff)
downloadmana-client-d3adc61aa4b4924f82d8cbc23bea26da7257da97.tar.gz
mana-client-d3adc61aa4b4924f82d8cbc23bea26da7257da97.tar.bz2
mana-client-d3adc61aa4b4924f82d8cbc23bea26da7257da97.tar.xz
mana-client-d3adc61aa4b4924f82d8cbc23bea26da7257da97.zip
Handling gender with an enum everywhere.
Diffstat (limited to 'src/player.h')
-rw-r--r--src/player.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/player.h b/src/player.h
index 7e742a7a..f6ecbd59 100644
--- a/src/player.h
+++ b/src/player.h
@@ -31,7 +31,8 @@ class Map;
enum Gender {
GENDER_MALE = 0,
- GENDER_FEMALE = 1
+ GENDER_FEMALE = 1,
+ GENDER_UNSPECIFIED = 2
};
/**
@@ -56,7 +57,7 @@ class Player : public Being
/**
* Sets the gender for this player.
*/
- void setGender(int);
+ void setGender(Gender);
/**
* Gets the hair color for this player.
@@ -87,7 +88,7 @@ class Player : public Being
setSprite(int slot, int id, const std::string &color = "");
private:
- Uint8 mGender;
+ Gender mGender;
Uint8 mHairStyle;
Uint8 mHairColor;
};