diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-08-14 12:21:07 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-08-14 12:26:38 -0600 |
commit | 9d1fbb5a538b3c5a1ba7d5ab55f39033ddb880f1 (patch) | |
tree | 88ac95203280fbe994273ede7ec10b1acfbb9b4b /src/player.h | |
parent | afc879b5ca185cfd93e604942aac45e76dc3c322 (diff) | |
download | mana-client-9d1fbb5a538b3c5a1ba7d5ab55f39033ddb880f1.tar.gz mana-client-9d1fbb5a538b3c5a1ba7d5ab55f39033ddb880f1.tar.bz2 mana-client-9d1fbb5a538b3c5a1ba7d5ab55f39033ddb880f1.tar.xz mana-client-9d1fbb5a538b3c5a1ba7d5ab55f39033ddb880f1.zip |
Add functions to more easily work with equipment
Move hair changes back over to them; related server change was reverted.
Also move NPCs back over to extending Player. NPCs will have equipment
in the future too, but for now, disable that part while we finish the
system.
Diffstat (limited to 'src/player.h')
-rw-r--r-- | src/player.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/player.h b/src/player.h index 36f0266e..3c4cc258 100644 --- a/src/player.h +++ b/src/player.h @@ -71,7 +71,7 @@ class Player : public Being /** * Constructor. */ - Player(int id, int job, Map *map); + Player(int id, int job, Map *map, bool isNPC = false); ~Player(); @@ -101,7 +101,13 @@ class Player : public Being /** * Sets visible equipments for this player. */ - virtual void setSprite(int slot, int id, const std::string &color = ""); + virtual void setSprite(unsigned int slot, int id, + const std::string &color = ""); + + virtual void setSpriteID(unsigned int slot, int id); + + virtual void setSpriteColor(unsigned int slot, + const std::string &color = ""); #ifdef TMWSERV_SUPPORT /** |