| 169 | }; |
| 170 | |
| 171 | bool hasValidSpace() const |
| 172 | { |
| 173 | // Get min/max distances |
| 174 | int min = MAX_RANGE/2 - maxSearch/2; |
| 175 | int max = min + maxSearch; |
| 176 | for ( int y = min; y < max; ++y ) |
| 177 | { |
| 178 | for ( int x = min; x < max; ++x ) |
| 179 | { |
| 180 | if ( this->getValue(x,y) == 1 ) |
| 181 | return true; |
| 182 | } |
| 183 | } |
| 184 | return false; |
| 185 | }; |
| 186 | |
| 187 | void backup() |
| 188 | { |
no test coverage detected