diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-03-11 14:30:23 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-03-11 14:30:23 -0600 |
commit | 2eb027b0f7a67706df68fe29e605c5be7fc1d5c9 (patch) | |
tree | 6d0803edbd5354afcef9440f087d2a228dd576d4 /src/being.h | |
parent | c2e4a7a70971355f1446bb01053af8a1da8c98e1 (diff) | |
download | mana-2eb027b0f7a67706df68fe29e605c5be7fc1d5c9.tar.gz mana-2eb027b0f7a67706df68fe29e605c5be7fc1d5c9.tar.bz2 mana-2eb027b0f7a67706df68fe29e605c5be7fc1d5c9.tar.xz mana-2eb027b0f7a67706df68fe29e605c5be7fc1d5c9.zip |
Remove some duplication in hair loading code
Diffstat (limited to 'src/being.h')
-rw-r--r-- | src/being.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/being.h b/src/being.h index 1987d5b8..754c163a 100644 --- a/src/being.h +++ b/src/being.h @@ -436,9 +436,9 @@ class Being : public Sprite // Target cursor being used by the being Image *mTargetCursor; - static int getHairColorsNr(); + static int getHairColorCount(); - static int getHairStylesNr(); + static int getHairStyleCount(); static std::string getHairColor(int index); @@ -501,6 +501,8 @@ class Being : public Sprite /** Engine-related infos about weapon. */ const ItemInfo* mEquippedWeapon; + static std::vector<std::string> hairColors; + static int mNumberOfHairColors; /** Number of hair colors in use */ static int mNumberOfHairstyles; /** Number of hair styles in use */ Path mPath; @@ -522,6 +524,8 @@ class Being : public Sprite ParticleList mChildParticleEffects; private: + static void initializeHair(); + /** * Calculates the offset in the given directions. * If walking in direction 'neg' the value is negated. |