OpenTTD NoAI API
|
Creates an empty list, in which you can add tiles. More...
Public Member Functions | |
void | AddRectangle (TileIndex tile_from, TileIndex tile_to) |
Adds the rectangle between tile_from and tile_to to the to-be-evaluated tiles. | |
void | AddTile (TileIndex tile) |
Add a tile to the to-be-evaluated tiles. | |
void | RemoveRectangle (TileIndex tile_from, TileIndex tile_to) |
Remove the tiles inside the rectangle between tile_from and tile_to form the list. | |
void | RemoveTile (TileIndex tile) |
Remove a tile from the list. |
Creates an empty list, in which you can add tiles.
Adds the rectangle between tile_from and tile_to to the to-be-evaluated tiles.
tile_from | One corner of the tiles to add. |
tile_to | The other corner of the tiles to add. |
void AITileList::AddTile | ( | TileIndex | tile | ) |
Add a tile to the to-be-evaluated tiles.
tile | The tile to add. |
Remove the tiles inside the rectangle between tile_from and tile_to form the list.
tile_from | One corner of the tiles to remove. |
tile_to | The other corner of the files to remove. |
void AITileList::RemoveTile | ( | TileIndex | tile | ) |
Remove a tile from the list.
tile | The tile to remove. |