engine/maps/source/MapUtils.cpp
// Check to see if the creature can squeeze by into the next tile.
Check to see if the creature can squeeze by into the next tile.
Check to see if the creature can squeeze by into the next tile .
bool MapUtils::can_squeeze_by(MapPtr map, CreaturePtr creature, const Coordinate& new_coords, const Direction d)
{
  Coordinate potential_squeeze_coords = CoordUtils::get_new_coordinate(new_coords, d, 1);
  TilePtr potential_squeeze_tile = map->at(potential_squeeze_coords);
  return ((potential_squeeze_tile != nullptr) && MapUtils::is_tile_available_for_creature(creature, potential_squeeze_tile));
}
bool MapUtils :: can_squeeze_by ( MapPtr map , CreaturePtr creature , const Coordinate & new_coords , const Direction d ) { Coordinate potential_squeeze_coords = CoordUtils :: get_new_coordinate ( new_coords , d , 1 ) ; TilePtr potential_squeeze_tile = map -> at ( potential_squeeze_coords ) ; return ( ( potential_squeeze_tile != nullptr ) && MapUtils :: is_tile_available_for_creature ( creature , potential_squeeze_tile ) ) ; }
Check to see if the creature can squeeze by into the next tile.
Check to see if the creature can squeeze by into the next tile .