CheckNeighbourhoodImpl<TC> CheckUnitTilesWithAddonWithSpace(const BWAPI::UnitType& type, int s, const TC& c) { int width = type.tileWidth() + (type.canBuildAddon() ? 2 : 0); return CheckNeighbourhood(-s, width+s, -s, type.tileHeight()+s, c); }
CheckNeighbourhoodImpl<TC> CheckUnitTilesWithAddon(const BWAPI::UnitType& type, const TC& c) { int width = type.tileWidth() + (type.canBuildAddon() ? 2 : 0); return CheckNeighbourhood(0, width, 0, type.tileHeight(), c); }