summaryrefslogtreecommitdiff
path: root/src/npc.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-08-13 17:30:59 -0600
committerJared Adams <jaxad0127@gmail.com>2009-08-13 17:33:08 -0600
commitf46cfb91278b27f4943f5512778129fe985c678e (patch)
tree0be219d66e723bcca8de2d584d66bc65d040fb26 /src/npc.h
parentbe85ca9d91ff867faf140328d0bcbb2062b58cdf (diff)
downloadmana-client-f46cfb91278b27f4943f5512778129fe985c678e.tar.gz
mana-client-f46cfb91278b27f4943f5512778129fe985c678e.tar.bz2
mana-client-f46cfb91278b27f4943f5512778129fe985c678e.tar.xz
mana-client-f46cfb91278b27f4943f5512778129fe985c678e.zip
Clean up Being and it's derivatives
Move stuff only needed for Players into Player (like slots and sprite limits). Move name handling into Being (no need for three copies of this code). Clean up terminology (including Map terminology). Remove hair-related variables.
Diffstat (limited to 'src/npc.h')
-rw-r--r--src/npc.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/npc.h b/src/npc.h
index 392ee8c5..5335d8cd 100644
--- a/src/npc.h
+++ b/src/npc.h
@@ -32,11 +32,9 @@ class NPC : public Being
public:
NPC(int id, int job, Map *map);
- ~NPC();
-
void setName(const std::string &name);
- virtual Type getType() const;
+ virtual Type getType() const { return Being::NPC; }
void talk();
@@ -58,11 +56,6 @@ class NPC : public Being
*/
virtual Map::BlockType getBlockType() const
{ return Map::BLOCKTYPE_CHARACTER; } //blocks like a player character
-
- void updateCoords();
-
- private:
- Text *mName;
};
extern int current_npc;