diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-08-13 10:31:23 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-08-13 17:33:08 -0600 |
commit | be85ca9d91ff867faf140328d0bcbb2062b58cdf (patch) | |
tree | b9bf367d9e655b36acf764a8e0260f6912d14b0b /src/npc.h | |
parent | 0c9ee8a74e62fe65acb551370db07ca568e3a0b3 (diff) | |
download | mana-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.h | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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; |