OpenTTD
|
Represents a diagonal tile area. More...
#include <tilearea_type.h>
Public Member Functions | |
DiagonalTileArea (TileIndex tile=INVALID_TILE, int8 a=0, int8 b=0) | |
Construct this tile area with some set values. | |
DiagonalTileArea (TileIndex start, TileIndex end) | |
Create a diagonal tile area from two corners. | |
void | Clear () |
Clears the TileArea by making the tile invalid and setting a and b to 0. | |
bool | Contains (TileIndex tile) const |
Does this tile area contain a tile? |
Data Fields | |
TileIndex | tile |
Base tile of the area. | |
int16 | a |
Extent in diagonal "x" direction (may be negative to signify the area stretches to the left) | |
int16 | b |
Extent in diagonal "y" direction (may be negative to signify the area stretches upwards) |
Represents a diagonal tile area.
Definition at line 64 of file tilearea_type.h.
|
inline |
Construct this tile area with some set values.
tile | The base tile. |
a | The "x" extent. |
b | The "y" estent. |
Definition at line 76 of file tilearea_type.h.
bool DiagonalTileArea::Contains | ( | TileIndex | tile | ) | const |