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/player.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/player.h') diff --git a/src/player.h b/src/player.h index 1526d2bc..e9a30da0 100644 --- a/src/player.h +++ b/src/player.h @@ -53,6 +53,13 @@ class Player : public Being /** * Sets the hair style and color for this player. + * + * Only for convenience in 0.0 client. When porting + * this to the trunk remove this function and + * call setSprite directly instead. The server should + * provide the hair ID and coloring in the same way + * it does for other equipment pieces. + * */ void setHairStyle(int style, int color); @@ -60,7 +67,7 @@ class Player : public Being * Sets visible equipments for this player. */ virtual void - setVisibleEquipment(int slot, int id); + setSprite(int slot, int id, std::string color = ""); }; #endif -- cgit v1.2.3-60-g2f50