NPC Class Reference
#include <npc.h>
List of all members.
Detailed Description
Definition at line 30 of file npc.h.
|
Public Member Functions |
| NPC (int id, int job, Map *map) |
| ~NPC () |
void | setName (const std::string &name) |
| Set up mName to be the character's name.
|
void | setGender (Gender gender) |
| Sets the gender of this being.
|
void | setSprite (int slot, int id, std::string color) |
virtual Type | getType () const |
| Returns the type of the being.
|
void | talk () |
virtual unsigned char | getWalkMask () const |
| Gets the way an NPC is blocked by other things on the map.
|
Static Public Attributes |
static bool | isTalking = false |
Protected Member Functions |
virtual Map::BlockType | getBlockType () const |
| Gets the way a monster blocks pathfinding for other objects.
|
void | updateCoords () |
| Let the sub-classes react to a replacement.
|
Private Attributes |
Text * | mName |
| Name of character.
|
Constructor & Destructor Documentation
NPC::NPC |
( |
int |
id, |
|
|
int |
job, |
|
|
Map * |
map | |
|
) |
| | |
Member Function Documentation
void NPC::setName |
( |
const std::string & |
name |
) |
[virtual] |
Set up mName to be the character's name.
Reimplemented from Player.
Definition at line 80 of file npc.cpp.
void NPC::setGender |
( |
Gender |
gender |
) |
[virtual] |
Sets the gender of this being.
Reimplemented from Player.
Definition at line 93 of file npc.cpp.
void NPC::setSprite |
( |
int |
slot, |
|
|
int |
id, |
|
|
std::string |
color | |
|
) |
| | |
Returns the type of the being.
Reimplemented from Player.
Definition at line 104 of file npc.cpp.
virtual unsigned char NPC::getWalkMask |
( |
|
) |
const [inline, virtual] |
Gets the way an NPC is blocked by other things on the map.
Reimplemented from Player.
Definition at line 48 of file npc.h.
virtual Map::BlockType NPC::getBlockType |
( |
|
) |
const [inline, protected, virtual] |
Gets the way a monster blocks pathfinding for other objects.
Reimplemented from Player.
Definition at line 57 of file npc.h.
void NPC::updateCoords |
( |
|
) |
[protected, virtual] |
Let the sub-classes react to a replacement.
Reimplemented from Player.
Definition at line 119 of file npc.cpp.
Member Data Documentation
Definition at line 51 of file npc.h.
Name of character.
Reimplemented from Player.
Definition at line 63 of file npc.h.
The documentation for this class was generated from the following files: