summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2008-10-27 17:05:14 +0000
committerIra Rice <irarice@gmail.com>2008-10-27 17:05:14 +0000
commit0007b8e9497eacb506c8bfad34aad5adff10ba5a (patch)
tree5c256dac8cd142a762a948ef6a481789e3fbdf2c /src/being.h
parentf3beda85b284e57caf6e5c685174bcb2e608d9ce (diff)
downloadmana-client-0007b8e9497eacb506c8bfad34aad5adff10ba5a.tar.gz
mana-client-0007b8e9497eacb506c8bfad34aad5adff10ba5a.tar.bz2
mana-client-0007b8e9497eacb506c8bfad34aad5adff10ba5a.tar.xz
mana-client-0007b8e9497eacb506c8bfad34aad5adff10ba5a.zip
De-hardcoded the number of hair styles.
Diffstat (limited to 'src/being.h')
-rw-r--r--src/being.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/being.h b/src/being.h
index a2d5e5a7..b0c5b49e 100644
--- a/src/being.h
+++ b/src/being.h
@@ -38,8 +38,6 @@
#include "resources/colordb.h"
-#define NR_HAIR_STYLES 10
-
#define FIRST_IGNORE_EMOTE 14
class AnimatedSprite;
@@ -200,6 +198,11 @@ class Being : public Sprite
{ return mHairStyle; }
/**
+ * Get the number of hairstyles implemented
+ */
+ static int getNumOfHairstyles() { return mNumberOfHairstyles; }
+
+ /**
* Sets the hair style and color for this being.
*/
virtual void setHairStyle(int style, int color);
@@ -398,6 +401,8 @@ class Being : public Sprite
/** Engine-related infos about weapon. */
const ItemInfo* mEquippedWeapon;
+ static int mNumberOfHairstyles; /** Number of hair styles in use */
+
Path mPath;
std::string mSpeech;
Text *mText;