diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2008-03-15 02:40:33 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2008-03-15 02:40:33 +0000 |
commit | d0dfa3c6de533c015893965f439cf71d2dc064c9 (patch) | |
tree | 46bd442a339ad831eee752a0e8bf7185e39cabbf /src/npc.h | |
parent | c4f8c95691e8661d1c51383c63804f6879b44419 (diff) | |
download | mana-d0dfa3c6de533c015893965f439cf71d2dc064c9.tar.gz mana-d0dfa3c6de533c015893965f439cf71d2dc064c9.tar.bz2 mana-d0dfa3c6de533c015893965f439cf71d2dc064c9.tar.xz mana-d0dfa3c6de533c015893965f439cf71d2dc064c9.zip |
AAdded pathblocking rules to NPCs.
Diffstat (limited to 'src/npc.h')
-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; |