summaryrefslogtreecommitdiff
path: root/src/monster.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/monster.h
parentbe85ca9d91ff867faf140328d0bcbb2062b58cdf (diff)
downloadmana-f46cfb91278b27f4943f5512778129fe985c678e.tar.gz
mana-f46cfb91278b27f4943f5512778129fe985c678e.tar.bz2
mana-f46cfb91278b27f4943f5512778129fe985c678e.tar.xz
mana-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/monster.h')
-rw-r--r--src/monster.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/monster.h b/src/monster.h
index 29b04eab..1cfb8e93 100644
--- a/src/monster.h
+++ b/src/monster.h
@@ -32,15 +32,13 @@ class Monster : public Being
public:
Monster(int id, int job, Map *map);
- ~Monster();
-
#ifdef EATHENA_SUPPORT
virtual void logic();
#endif
virtual void setAction(Action action, int attackType = 0);
- virtual Type getType() const;
+ virtual Type getType() const { return MONSTER; }
virtual TargetCursorSize
getTargetCursorSize() const;
@@ -70,11 +68,6 @@ class Monster : public Being
const MonsterInfo& getInfo() const;
/**
- * Determine whether the mob should show it's name
- */
- void setShowName(bool show);
-
- /**
* Gets the way the monster is blocked by other objects
*/
virtual unsigned char getWalkMask() const
@@ -96,11 +89,7 @@ class Monster : public Being
*/
void updateCoords();
- private:
- /**
- * holds a text object when the mod displays it's name, 0 otherwise
- */
- Text *mText;
+ void showName();
};
#endif