summaryrefslogtreecommitdiff
path: root/src/tilearea_type.h
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-02-06 12:56:13 +0000
committeralberth <alberth@openttd.org>2010-02-06 12:56:13 +0000
commit05388c953a5040958ef07f3af16f50e5e6e1dd1d (patch)
tree5a9c1baa81ae70c90924cb82100dfe0ffd0baf63 /src/tilearea_type.h
parent21c3dd11bdc0574a1ac7d7c0c7094b6ab82b8044 (diff)
downloadopenttd-05388c953a5040958ef07f3af16f50e5e6e1dd1d.tar.xz
(svn r19038) -Codechange: Move TileArea methods to their own file.
Diffstat (limited to 'src/tilearea_type.h')
-rw-r--r--src/tilearea_type.h21
1 files changed, 4 insertions, 17 deletions
diff --git a/src/tilearea_type.h b/src/tilearea_type.h
index 6c2639cff..15045cb11 100644
--- a/src/tilearea_type.h
+++ b/src/tilearea_type.h
@@ -16,6 +16,10 @@
/** Represents the covered area of e.g. a rail station */
struct TileArea {
+ TileIndex tile; ///< The base tile of the area
+ uint8 w; ///< The width of the area
+ uint8 h; ///< The height of the area
+
/** Just construct this tile area */
TileArea() {}
@@ -27,21 +31,9 @@ struct TileArea {
*/
TileArea(TileIndex tile, uint8 w, uint8 h) : tile(tile), w(w), h(h) {}
- /**
- * Construct this tile area based on two points.
- * @param start the start of the area
- * @param end the end of the area
- */
TileArea(TileIndex start, TileIndex end);
- 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);
/**
@@ -54,11 +46,6 @@ struct TileArea {
this->h = 0;
}
- /**
- * Does this tile area intersect with another?
- * @param ta the other tile area to check against.
- * @return true if they intersect.
- */
bool Intersects(const TileArea &ta) const;
};