summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2007-12-10 02:22:59 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2007-12-10 02:22:59 +0000
commite961be5bfd29ad3f44f948828981cb3ab07f25a7 (patch)
tree5464d14635191407eb24c7ad76b1b218b33016d2 /src/being.h
parent43b986ceffdb436d8850a876bd485c9a3eea8cdd (diff)
downloadMana-e961be5bfd29ad3f44f948828981cb3ab07f25a7.tar.gz
Mana-e961be5bfd29ad3f44f948828981cb3ab07f25a7.tar.bz2
Mana-e961be5bfd29ad3f44f948828981cb3ab07f25a7.tar.xz
Mana-e961be5bfd29ad3f44f948828981cb3ab07f25a7.zip
Simplified player subsprite handling by treating equipment, hairstyle and base sprites alike. Implementing female hairstyles is now a purely content-sided task.
Diffstat (limited to 'src/being.h')
-rw-r--r--src/being.h5
1 files changed, 3 insertions, 2 deletions
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<AnimatedSprite*> mSprites;
- std::vector<int> mEquipmentSpriteIDs;
+ std::vector<int> mSpriteIDs;
+ std::vector<std::string> mSpriteColors;
std::list<Particle *> mChildParticleEffects;
private: