engine/maps/source/MapUtils.cpp
// Get the adjacent tiles, plus the tile that the creature is standing on.
Get the adjacent tiles, plus the tile that the creature is standing on.
Get the adjacent tiles plus the tile that the creature is standing on .
TileDirectionMap MapUtils::get_adjacent_and_creature_tiles(const MapPtr& map, const CreaturePtr& creature)
{
  TileDirectionMap direction_map = get_adjacent_tiles_to_creature(map, creature);
  TilePtr creature_tile = get_tile_for_creature(map, creature);
  direction_map.insert(make_pair(Direction::DIRECTION_NULL, creature_tile));
  return direction_map;
}
TileDirectionMap MapUtils :: get_adjacent_and_creature_tiles ( const MapPtr & map , const CreaturePtr & creature ) { TileDirectionMap direction_map = get_adjacent_tiles_to_creature ( map , creature ) ; TilePtr creature_tile = get_tile_for_creature ( map , creature ) ; direction_map . insert ( make_pair ( Direction :: DIRECTION_NULL , creature_tile ) ) ; return direction_map ; }
Get the adjacent tiles, plus the tile that the creature is standing on.
Get the adjacent tiles plus the tile that the creature is standing on .