MCPcopy Create free account
hub / github.com/bwapi/bwapi / iterate

Method iterate

bwapi/BWAPILIB/Source/Game.cpp:161–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159
160 template <typename T>
161 void iterate(const T& proc)
162 {
163 // Get min/max distances
164 int min = MAX_RANGE/2 - maxSearch/2;
165 int max = min + maxSearch;
166 for ( int y = min; y < max; ++y )
167 for ( int x = min; x < max; ++x )
168 proc(this, x, y);
169 };
170
171 bool hasValidSpace() const
172 {

Callers 4

AssignBuildableLocationsFunction · 0.80
RemoveDisconnectedFunction · 0.80
ReserveGroundHeightFunction · 0.80
ReservePlacementFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected