summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/npc.cpp6
-rw-r--r--src/npc.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/npc.cpp b/src/npc.cpp
index 2eebed7b..82b68af4 100644
--- a/src/npc.cpp
+++ b/src/npc.cpp
@@ -99,6 +99,12 @@ void NPC::setGender(int gender)
Being::setGender(gender);
}
+void NPC::setSprite(int slot, int id, std::string color)
+{
+ // Fix this later should it not be adequate enough.
+ Being::setSprite(slot, id, color);
+}
+
Being::Type
NPC::getType() const
{
diff --git a/src/npc.h b/src/npc.h
index 0dff1dcb..fa39e6c2 100644
--- a/src/npc.h
+++ b/src/npc.h
@@ -39,6 +39,7 @@ class NPC : public Player
void setName(const std::string &name);
void setGender(int gender);
+ void setSprite(int slot, int id, std::string color);
virtual Type
getType() const;