From 81062163a25497e9d83fd354b53234d1796f675d Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 2 Dec 2009 16:20:44 +0000 Subject: (svn r18377) -Codechange: add 'cache' of the tile area of truck and bus stops. --- src/station_type.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/station_type.h') diff --git a/src/station_type.h b/src/station_type.h index 2784f123b..769455d20 100644 --- a/src/station_type.h +++ b/src/station_type.h @@ -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 */ -- cgit v1.2.3-54-g00ecf