summaryrefslogtreecommitdiff
path: root/src/station_type.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/station_type.h')
-rw-r--r--src/station_type.h16
1 files changed, 16 insertions, 0 deletions
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 */