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/npc.h | |
parent | afc879b5ca185cfd93e604942aac45e76dc3c322 (diff) | |
download | mana-9d1fbb5a538b3c5a1ba7d5ab55f39033ddb880f1.tar.gz mana-9d1fbb5a538b3c5a1ba7d5ab55f39033ddb880f1.tar.bz2 mana-9d1fbb5a538b3c5a1ba7d5ab55f39033ddb880f1.tar.xz mana-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/npc.h')
-rw-r--r-- | src/npc.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -27,7 +27,7 @@ class Graphics; class Text; -class NPC : public Being +class NPC : public Player { public: NPC(int id, int job, Map *map); @@ -38,6 +38,9 @@ class NPC : public Being void talk(); + void setSprite(unsigned int slot, int id, + const std::string &color = ""); + /** * Gets the way an NPC is blocked by other things on the map */ @@ -56,6 +59,9 @@ class NPC : public Being */ virtual Map::BlockType getBlockType() const { return Map::BLOCKTYPE_CHARACTER; } //blocks like a player character + + // Colors don't change for NPCs + virtual void updateColors() {} }; extern int current_npc; |