| 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 | { |
no outgoing calls
no test coverage detected