* Advance the internal state until it reaches a valid tile or the end. */
| 346 | * Advance the internal state until it reaches a valid tile or the end. |
| 347 | */ |
| 348 | void SpiralTileIterator::SkipOutsideMap() |
| 349 | { |
| 350 | while (!this->IsEnd() && (this->x >= Map::SizeX() || this->y >= Map::SizeY())) this->Increment(); |
| 351 | } |
| 352 | |
| 353 | /** |
| 354 | * Initialise "position" after "dir" was changed. |
no test coverage detected