AITileList Class Reference

Creates an empty list, in which you can add tiles. More...

Inheritance diagram for AITileList:

AIList AITileList_IndustryAccepting AITileList_IndustryProducing AITileList_StationType

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.

Detailed Description

Creates an empty list, in which you can add tiles.

Member Function Documentation

void AITileList::AddRectangle ( TileIndex  tile_from,
TileIndex  tile_to 
)

Adds the rectangle between tile_from and tile_to to the to-be-evaluated tiles.

Parameters:
tile_from One corner of the tiles to add.
tile_to The other corner of the tiles to add.
Precondition:
AIMap::IsValidTile(tile_from).

AIMap::IsValidTile(tile_to).

void AITileList::AddTile ( TileIndex  tile  ) 

Add a tile to the to-be-evaluated tiles.

Parameters:
tile The tile to add.
Precondition:
AIMap::IsValidTile(tile).

void AITileList::RemoveRectangle ( TileIndex  tile_from,
TileIndex  tile_to 
)

Remove the tiles inside the rectangle between tile_from and tile_to form the list.

Parameters:
tile_from One corner of the tiles to remove.
tile_to The other corner of the files to remove.
Precondition:
AIMap::IsValidTile(tile_from).

AIMap::IsValidTile(tile_to).

void AITileList::RemoveTile ( TileIndex  tile  ) 

Remove a tile from the list.

Parameters:
tile The tile to remove.
Precondition:
AIMap::IsValidTile(tile).


Generated on Thu Jun 30 21:53:52 2016 for OpenTTD NoAI API by  doxygen 1.5.6