summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorFate <fate.tmw@googlemail.com>2008-11-01 23:45:48 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2008-12-13 16:06:17 +0100
commitba02a23b63bf0a1fde2194d163ead365d2a4fdf0 (patch)
tree3fbaa733e43b270395b20418f71211b9a5b1fed2 /src/being.h
parent16106cae769f485908c15ac39d0e017167099a48 (diff)
downloadmana-ba02a23b63bf0a1fde2194d163ead365d2a4fdf0.tar.gz
mana-ba02a23b63bf0a1fde2194d163ead365d2a4fdf0.tar.bz2
mana-ba02a23b63bf0a1fde2194d163ead365d2a4fdf0.tar.xz
mana-ba02a23b63bf0a1fde2194d163ead365d2a4fdf0.zip
* 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)
Diffstat (limited to 'src/being.h')
-rw-r--r--src/being.h10
1 files changed, 7 insertions, 3 deletions
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.