From da6d1acf73e3de0558548cd73006aadda33994f5 Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Sat, 25 Oct 2008 21:10:35 +0000 Subject: Changed NPC's to inherit from the player class. This should be helpful later, since they essentially are a beefed up player. --- src/npc.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/npc.h') diff --git a/src/npc.h b/src/npc.h index 432d26d1..0dff1dcb 100644 --- a/src/npc.h +++ b/src/npc.h @@ -24,13 +24,13 @@ #ifndef _TMW_NPC_H #define _TMW_NPC_H -#include "being.h" +#include "player.h" class Network; class Graphics; class Text; -class NPC : public Being +class NPC : public Player { public: NPC(Uint32 id, Uint16 job, Map *map, Network *network); @@ -38,6 +38,7 @@ class NPC : public Being ~NPC(); void setName(const std::string &name); + void setGender(int gender); virtual Type getType() const; -- cgit v1.2.3-60-g2f50