NPC Class Reference

Class describing a non-player character. More...

#include <npc.hpp>

Inheritance diagram for NPC:

Being Actor Thing

List of all members.

Public Member Functions

 NPC (const std::string &name, int id, Script *)
void update ()
 Cleans obsolete attribute modifiers.
void enable (bool enabled)
 Enables the NPC.
void prompt (Character *, bool restart)
 Prompts NPC.
void select (Character *, int)
 Selects an NPC proposition.
int getNPC () const
 Gets NPC ID.
virtual unsigned char getWalkMask () const
 Gets the way an NPC is blocked by other things on the map.

Protected Member Functions

virtual Map::BlockType getBlockType () const
 Gets the way a monster blocks pathfinding for other objects.


Detailed Description

Class describing a non-player character.

Definition at line 32 of file npc.hpp.


The documentation for this class was generated from the following files:

Generated on Sun Apr 26 17:30:46 2009 for TMW Server Collection by  doxygen 1.5.5