From 8f1bf397990729c3a807bbbe0b643bc97446c923 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) --- 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 d5fe7790..76317797 100644 --- a/src/being.h +++ b/src/being.h @@ -34,9 +34,6 @@ #include "map.h" #include "animatedsprite.h" -#define NR_HAIR_STYLES 8 -#define NR_HAIR_COLORS 10 - #define FIRST_IGNORE_EMOTE 14 class AnimatedSprite; @@ -370,6 +367,13 @@ class Being : public Sprite const std::auto_ptr mEquipment; + + 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