From e961be5bfd29ad3f44f948828981cb3ab07f25a7 Mon Sep 17 00:00:00 2001 From: Philipp Sehmisch Date: Mon, 10 Dec 2007 02:22:59 +0000 Subject: Simplified player subsprite handling by treating equipment, hairstyle and base sprites alike. Implementing female hairstyles is now a purely content-sided task. --- src/being.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/being.h') diff --git a/src/being.h b/src/being.h index 2770dd6b..bdcabbdf 100644 --- a/src/being.h +++ b/src/being.h @@ -204,7 +204,7 @@ class Being : public Sprite * Sets visible equipments for this being. */ virtual void - setVisibleEquipment(int slot, int id); + setSprite(int slot, int id, std::string color = ""); /** * Sets the gender of this being. @@ -386,7 +386,8 @@ class Being : public Sprite Sint32 mPx, mPy; /**< Pixel coordinates */ std::vector mSprites; - std::vector mEquipmentSpriteIDs; + std::vector mSpriteIDs; + std::vector mSpriteColors; std::list mChildParticleEffects; private: -- cgit v1.2.3-70-g09d2