summaryrefslogtreecommitdiff
path: root/src/npc.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/npc.h
parent4dbc9b7af344d3ff006a40e3e0c06ce160f365f9 (diff)
downloadmana-client-159285c5aa24611ceee7e3847a87bf9ea5f7fb7a.tar.gz
mana-client-159285c5aa24611ceee7e3847a87bf9ea5f7fb7a.tar.bz2
mana-client-159285c5aa24611ceee7e3847a87bf9ea5f7fb7a.tar.xz
mana-client-159285c5aa24611ceee7e3847a87bf9ea5f7fb7a.zip
Import of client tree
Diffstat (limited to 'src/npc.h')
-rw-r--r--src/npc.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/npc.h b/src/npc.h
index 0d9966bd..432d26d1 100644
--- a/src/npc.h
+++ b/src/npc.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: npc.h 2883 2006-12-03 17:00:07Z b_lindeijer $
*/
#ifndef _TMW_NPC_H
@@ -28,18 +28,20 @@
class Network;
class Graphics;
+class Text;
class NPC : public Being
{
public:
NPC(Uint32 id, Uint16 job, Map *map, Network *network);
+ ~NPC();
+
+ void setName(const std::string &name);
+
virtual Type
getType() const;
- virtual void
- drawName(Graphics *graphics, Sint32 offsetX, Sint32 offsetY);
-
void talk();
void nextDialog();
void dialogChoice(char choice);
@@ -49,6 +51,9 @@ class NPC : public Being
protected:
Network *mNetwork;
+ void updateCoords();
+ private:
+ Text *mName;
};
extern NPC *current_npc;