|
OpenTTD
|
Base class for tile iterators. More...
#include <tilearea_type.h>
Public Member Functions | |
| virtual | ~TileIterator () |
| Some compilers really like this. | |
| operator TileIndex () const | |
| Get the tile we are currently at. | |
| virtual TileIterator & | operator++ ()=0 |
| Move ourselves to the next tile in the rectangle on the map. | |
| virtual TileIterator * | Clone () const =0 |
| Allocate a new iterator that is a copy of this one. | |
Protected Member Functions | |
| TileIterator (TileIndex tile=INVALID_TILE) | |
| Initialise the iterator starting at this tile. | |
Protected Attributes | |
| TileIndex | tile |
| The current tile we are at. | |
Base class for tile iterators.
Definition at line 99 of file tilearea_type.h.
|
inlineprotected |
Initialise the iterator starting at this tile.
| tile | The tile we start iterating from. |
Definition at line 107 of file tilearea_type.h.
|
inlinevirtual |
Some compilers really like this.
Definition at line 113 of file tilearea_type.h.
|
inline |
Get the tile we are currently at.
Definition at line 121 of file tilearea_type.h.
References tile.
1.8.1.2