summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2008-10-25 21:33:59 +0000
committerIra Rice <irarice@gmail.com>2008-10-25 21:33:59 +0000
commit6429efce8c5b17caf492adeba7d37a71fa3c4776 (patch)
treedbb3917d188668dfaedc30a960e1752de16a007f
parentda6d1acf73e3de0558548cd73006aadda33994f5 (diff)
downloadmana-6429efce8c5b17caf492adeba7d37a71fa3c4776.tar.gz
mana-6429efce8c5b17caf492adeba7d37a71fa3c4776.tar.bz2
mana-6429efce8c5b17caf492adeba7d37a71fa3c4776.tar.xz
mana-6429efce8c5b17caf492adeba7d37a71fa3c4776.zip
Fixed NPC's so that clothes would draw again. However, if in the future
this isn't sufficient for attacking, movement, or other code, this will be changed to mimic the style used by the base class player.
-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;