diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2007-12-10 02:22:59 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2007-12-10 02:22:59 +0000 |
commit | e961be5bfd29ad3f44f948828981cb3ab07f25a7 (patch) | |
tree | 5464d14635191407eb24c7ad76b1b218b33016d2 /src/player.h | |
parent | 43b986ceffdb436d8850a876bd485c9a3eea8cdd (diff) | |
download | mana-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/player.h')
-rw-r--r-- | src/player.h | 9 |
1 files changed, 8 insertions, 1 deletions
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 |