コード例 #1
0
 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);
 }
コード例 #2
0
 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);
 }