Iterator to iterate over a diagonal area of the map. More...
#include <tilearea_type.h>
Public Member Functions | |
DiagonalTileIterator (TileIndex begin, TileIndex end) | |
Construct the iterator. | |
TileIterator & | operator++ () |
Move ourselves to the next tile in the rectange on the map. | |
Private Attributes | |
uint | base_x |
uint | base_y |
The base tile x and y coordinates from where the iterating happens. | |
int | a_cur |
int | b_cur |
The current (rotated) x and y coordinates of the iteration. | |
int | a_max |
int | b_max |
The (rotated) x and y coordinates of the end of the iteration. |
Iterator to iterate over a diagonal area of the map.
Definition at line 133 of file tilearea_type.h.