summaryrefslogtreecommitdiff
path: root/src/npc.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-08-13 10:31:23 -0600
committerJared Adams <jaxad0127@gmail.com>2009-08-13 17:33:08 -0600
commitbe85ca9d91ff867faf140328d0bcbb2062b58cdf (patch)
treeb9bf367d9e655b36acf764a8e0260f6912d14b0b /src/npc.h
parent0c9ee8a74e62fe65acb551370db07ca568e3a0b3 (diff)
downloadmana-be85ca9d91ff867faf140328d0bcbb2062b58cdf.tar.gz
mana-be85ca9d91ff867faf140328d0bcbb2062b58cdf.tar.bz2
mana-be85ca9d91ff867faf140328d0bcbb2062b58cdf.tar.xz
mana-be85ca9d91ff867faf140328d0bcbb2062b58cdf.zip
Make NPC inherit from Being instead of Player
No need for NPCs to inherit from Player. Player has functions NPC doesn't need and overrides that NPC doesn't need. This change reduces the number of functions needed to be overrided by NPC.
Diffstat (limited to 'src/npc.h')
-rw-r--r--src/npc.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/npc.h b/src/npc.h
index fc6f3459..392ee8c5 100644
--- a/src/npc.h
+++ b/src/npc.h
@@ -27,7 +27,7 @@
class Graphics;
class Text;
-class NPC : public Player
+class NPC : public Being
{
public:
NPC(int id, int job, Map *map);
@@ -35,8 +35,6 @@ class NPC : public Player
~NPC();
void setName(const std::string &name);
- void setGender(Gender gender);
- void setSprite(int slot, int id, std::string color);
virtual Type getType() const;