diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/npc.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -45,6 +45,19 @@ class NPC : public Being void buy(); void sell(); + + /** + * Gets the way an NPC is blocked by other things on the map + */ + virtual unsigned char getWalkMask() const + { return 0x83; } // blocked like a monster by walls, monsters and characters ( bin 1000 0011) + + protected: + /** + * Gets the way a monster blocks pathfinding for other objects + */ + virtual Map::BlockType getBlockType() const + { return Map::BLOCKTYPE_CHARACTER; } //blocks like a player character }; extern NPC *current_npc; |