summaryrefslogtreecommitdiff
path: root/src/npc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/npc.h')
-rw-r--r--src/npc.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/npc.h b/src/npc.h
index 5335d8cd..46e48184 100644
--- a/src/npc.h
+++ b/src/npc.h
@@ -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;