diff options
Diffstat (limited to 'src/avatar.h')
-rw-r--r-- | src/avatar.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/avatar.h b/src/avatar.h index 60e68a948..f8f8d9941 100644 --- a/src/avatar.h +++ b/src/avatar.h @@ -23,10 +23,12 @@ #ifndef AVATAR_H #define AVATAR_H -#include "localconsts.h" +#include "being/gender.h" #include <string> +#include "localconsts.h" + enum AvatarType { AVATAR_PLAYER = 0 @@ -154,10 +156,10 @@ public: void setCharId(const int id) { mCharId = id; } - int getGender() const A_WARN_UNUSED + Gender getGender() const A_WARN_UNUSED { return mGender; } - void setGender(const int g) + void setGender(const Gender g) { mGender = g; } int getRace() const A_WARN_UNUSED @@ -192,7 +194,7 @@ protected: int mY; int mType; int mExp; - int mGender; + Gender mGender; int mRace; std::string mIp; bool mOnline; |