summaryrefslogtreecommitdiff
path: root/src/station_base.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-07-26 16:17:49 +0000
committerrubidium <rubidium@openttd.org>2009-07-26 16:17:49 +0000
commit2dd998ab06d0f79445bf96239da9944fa30b7578 (patch)
treed230b550010fe91e42a879808170d09958464f67 /src/station_base.h
parent0081bb9a960473bd1e4f4891416f401d1f50e5b8 (diff)
downloadopenttd-2dd998ab06d0f79445bf96239da9944fa30b7578.tar.xz
(svn r16962) -Codechange: more work towards multi tile waypoints
Diffstat (limited to 'src/station_base.h')
-rw-r--r--src/station_base.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/station_base.h b/src/station_base.h
index 82c13223d..7ddb92b39 100644
--- a/src/station_base.h
+++ b/src/station_base.h
@@ -41,29 +41,6 @@ struct GoodsEntry {
CargoList cargo; ///< The cargo packets of cargo waiting in this station
};
-/** StationRect - used to track station spread out rectangle - cheaper than scanning whole map */
-struct StationRect : public Rect {
- enum StationRectMode
- {
- ADD_TEST = 0,
- ADD_TRY,
- ADD_FORCE
- };
-
- StationRect();
- void MakeEmpty();
- bool PtInExtendedRect(int x, int y, int distance = 0) const;
- bool IsEmpty() const;
- bool BeforeAddTile(TileIndex tile, StationRectMode mode);
- bool BeforeAddRect(TileIndex tile, int w, int h, StationRectMode mode);
- bool AfterRemoveTile(Station *st, TileIndex tile);
- bool AfterRemoveRect(Station *st, TileIndex tile, int w, int h);
-
- static bool ScanForStationTiles(StationID st_id, int left_a, int top_a, int right_a, int bottom_a);
-
- StationRect& operator = (Rect src);
-};
-
typedef SmallVector<Industry *, 2> IndustryVector;
@@ -85,7 +62,6 @@ public:
RoadStop *bus_stops; ///< All the road stops
RoadStop *truck_stops; ///< All the truck stops
- TileArea train_station; ///< Tile area the train station part covers
TileIndex airport_tile; ///< The location of the airport
TileIndex dock_tile; ///< The location of the dock
@@ -105,8 +81,6 @@ public:
IndustryVector industries_near; ///< Cached list of industries near the station that can accept cargo, @see DeliverGoodsToIndustry()
- StationRect rect; ///< Station spread out rectangle (not saved) maintained by StationRect_xxx() functions
-
Station(TileIndex tile = INVALID_TILE);
~Station();