(svn r18377) -Codechange: add 'cache' of the tile area of truck and bus stops.

This commit is contained in:
rubidium
2009-12-02 16:20:44 +00:00
parent 31e1c606fd
commit 0f7cee89d8
5 changed files with 75 additions and 8 deletions

View File

@@ -114,6 +114,22 @@ struct TileArea {
TileIndex tile; ///< The base tile of the area
uint8 w; ///< The width of the area
uint8 h; ///< The height of the area
/**
* Add a single tile to a tile area; enlarge if needed.
* @param to_add The tile to add
*/
void Add(TileIndex to_add);
/**
* Clears the 'tile area', i.e. make the tile invalid.
*/
void Clear()
{
this->tile = INVALID_TILE;
this->w = 0;
this->h = 0;
}
};
/** List of stations */