From ba02a23b63bf0a1fde2194d163ead365d2a4fdf0 Mon Sep 17 00:00:00 2001 From: Fate Date: Sat, 1 Nov 2008 23:45:48 +0000 Subject: * Use hair.xml to determine hair colours (#514) * Auto-detect number of hair styles available (#514) Conflicts: ChangeLog src/being.cpp src/being.h src/gui/char_select.cpp (cherry picked from eAthena client) --- src/being.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/being.h') diff --git a/src/being.h b/src/being.h index cce5e99f..5e8cb2dc 100644 --- a/src/being.h +++ b/src/being.h @@ -33,9 +33,6 @@ #include "animatedsprite.h" #include "vector.h" -#define NR_HAIR_STYLES 8 -#define NR_HAIR_COLORS 10 - class AnimatedSprite; class Equipment; class ItemInfo; @@ -363,6 +360,13 @@ class Being : public Sprite */ const Path &getPath() const { return mPath; } + + static int getHairColorsNr(void); + + static int getHairStylesNr(void); + + static std::string getHairColor(int index); + protected: /** * Sets the new path for this being. -- cgit v1.2.3-70-g09d2