diff options
author | Ira Rice <irarice@gmail.com> | 2008-10-25 21:10:35 +0000 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2008-10-25 21:10:35 +0000 |
commit | da6d1acf73e3de0558548cd73006aadda33994f5 (patch) | |
tree | b1a61e702cacd04248027a58bfac8f5753cb8634 /src/npc.cpp | |
parent | f6ddb12a5c6eb85830a1f2d8188addfd14b5e1f1 (diff) | |
download | mana-da6d1acf73e3de0558548cd73006aadda33994f5.tar.gz mana-da6d1acf73e3de0558548cd73006aadda33994f5.tar.bz2 mana-da6d1acf73e3de0558548cd73006aadda33994f5.tar.xz mana-da6d1acf73e3de0558548cd73006aadda33994f5.zip |
Changed NPC's to inherit from the player class. This should be helpful
later, since they essentially are a beefed up player.
Diffstat (limited to 'src/npc.cpp')
-rw-r--r-- | src/npc.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/npc.cpp b/src/npc.cpp index 5efee873..2eebed7b 100644 --- a/src/npc.cpp +++ b/src/npc.cpp @@ -40,7 +40,7 @@ static const int NAME_X_OFFSET = 15; static const int NAME_Y_OFFSET = 30; NPC::NPC(Uint32 id, Uint16 job, Map *map, Network *network): - Being(id, job, map), mNetwork(network) + Player(id, job, map), mNetwork(network) { NPCInfo info = NPCDB::get(job); @@ -94,6 +94,11 @@ void NPC::setName(const std::string &name) Being::setName(displayName + " (NPC)"); } +void NPC::setGender(int gender) +{ + Being::setGender(gender); +} + Being::Type NPC::getType() const { |