void
void copied to clipboard
Collision check for rooves
To prevent large emotes being done inside, and to keep shop keepers in their shops
I've added a collision strategy which checks for anything above the tested tile. It's not quite perfect overhanging rooves are also included, allowing npcs to leave and cross to other neighbouring buildings.
Perhaps shopkeepers also aren't able to walk through open doorways?
Needs adding to shopkeeper npcs
Also needed to prevent normal npcs from going into buildings (camels in alkharid walking into the bank)
MapTileDecoder rooves are marked by settings and 0x4 == 0x4.
Pf has strategy for indoors and outdoors which uses the last flag 0x80000000 (2.147b), indoors for shops, outdoors is for guards.
Might be a good opportunity to move MapTile methods into MapDefinition and have MapTileDecoder which loadTiles into an IntArray or ByteArray with just the settings for better performance/overhead