summaryrefslogtreecommitdiff
path: root/src/monster.h
diff options
context:
space:
mode:
authorLloyd Bryant <lloyd_bryant@netzero.net>2008-07-18 00:48:14 +0000
committerLloyd Bryant <lloyd_bryant@netzero.net>2008-07-18 00:48:14 +0000
commit159285c5aa24611ceee7e3847a87bf9ea5f7fb7a (patch)
treefa48eb8bb8ed1e62ede1e7a2f95632c2243facab /src/monster.h
parent4dbc9b7af344d3ff006a40e3e0c06ce160f365f9 (diff)
downloadMana-159285c5aa24611ceee7e3847a87bf9ea5f7fb7a.tar.gz
Mana-159285c5aa24611ceee7e3847a87bf9ea5f7fb7a.tar.bz2
Mana-159285c5aa24611ceee7e3847a87bf9ea5f7fb7a.tar.xz
Mana-159285c5aa24611ceee7e3847a87bf9ea5f7fb7a.zip
Import of client tree
Diffstat (limited to 'src/monster.h')
-rw-r--r--src/monster.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/monster.h b/src/monster.h
index 39556b44..b613e96d 100644
--- a/src/monster.h
+++ b/src/monster.h
@@ -18,7 +18,7 @@
* along with The Mana World; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
- * $Id$
+ * $Id: monster.h 3690 2007-10-26 12:50:49Z crush_tmw $
*/
#ifndef _TMW_MONSTER_H
@@ -27,12 +27,15 @@
#include "being.h"
class MonsterInfo;
+class Text;
class Monster : public Being
{
public:
Monster(Uint32 id, Uint16 job, Map *map);
+ ~Monster();
+
virtual void logic();
virtual void setAction(Uint8 action);
@@ -63,6 +66,19 @@ class Monster : public Being
*/
const MonsterInfo&
getInfo() const;
+
+ /**
+ * Determine whether the mob should show it's name
+ */
+ void showName(bool show);
+
+ protected:
+ /**
+ * Update the text when the monster moves
+ */
+ void updateCoords();
+ private:
+ Text *mText; /**< holds a text object when the mod displays it's name, 0 otherwise */
};
#endif