From 292cfc56f65b1866d8fe31a9450b88a6831eee1d Mon Sep 17 00:00:00 2001 From: maedhros Date: Sat, 22 Mar 2008 11:27:46 +0000 Subject: (svn r12391) -Feature: Show whether a town is a "city" in the town description title bar. --- src/yapf/follow_track.cpp | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 src/yapf/follow_track.cpp (limited to 'src/yapf') diff --git a/src/yapf/follow_track.cpp b/src/yapf/follow_track.cpp new file mode 100644 index 000000000..ad2f0b724 --- /dev/null +++ b/src/yapf/follow_track.cpp @@ -0,0 +1,47 @@ +/* $Id$ */ + +#include "../stdafx.h" +#include "yapf.hpp" +#include "follow_track.hpp" + +void FollowTrackInit(FollowTrack_t *This, const Vehicle* v) +{ + CFollowTrackWater& F = *(CFollowTrackWater*) This; + F.Init(v, NULL); +} + +bool FollowTrackWater(FollowTrack_t *This, TileIndex old_tile, Trackdir old_td) +{ + CFollowTrackWater& F = *(CFollowTrackWater*) This; + return F.Follow(old_tile, old_td); +} + +bool FollowTrackRoad(FollowTrack_t *This, TileIndex old_tile, Trackdir old_td) +{ + CFollowTrackRoad& F = *(CFollowTrackRoad*) This; + return F.Follow(old_tile, old_td); +} + +bool FollowTrackRail(FollowTrack_t *This, TileIndex old_tile, Trackdir old_td) +{ + CFollowTrackRail& F = *(CFollowTrackRail*) This; + return F.Follow(old_tile, old_td); +} + +bool FollowTrackWaterNo90(FollowTrack_t *This, TileIndex old_tile, Trackdir old_td) +{ + CFollowTrackWaterNo90& F = *(CFollowTrackWaterNo90*) This; + return F.Follow(old_tile, old_td); +} + +bool FollowTrackRoadNo90(FollowTrack_t *This, TileIndex old_tile, Trackdir old_td) +{ + CFollowTrackRoadNo90& F = *(CFollowTrackRoadNo90*) This; + return F.Follow(old_tile, old_td); +} + +bool FollowTrackRailNo90(FollowTrack_t *This, TileIndex old_tile, Trackdir old_td) +{ + CFollowTrackRailNo90& F = *(CFollowTrackRailNo90*) This; + return F.Follow(old_tile, old_td); +} -- cgit v1.2.3-70-g09d2