diff options
author | yexo <yexo@openttd.org> | 2009-07-31 22:38:09 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2009-07-31 22:38:09 +0000 |
commit | 8d768f5b30b4415591fafa23345d81cc306e28ea (patch) | |
tree | f561978c2350f6e2c411e61a2ea4dd51241a16d6 /src/ai/api/ai_basestation.hpp | |
parent | 8c05194c0241d88226ba6c727a0c45b00d8495ed (diff) | |
download | openttd-8d768f5b30b4415591fafa23345d81cc306e28ea.tar.xz |
(svn r17012) -Add [NoAI]: AIBaseStation::GetConstructionDate
Diffstat (limited to 'src/ai/api/ai_basestation.hpp')
-rw-r--r-- | src/ai/api/ai_basestation.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ai/api/ai_basestation.hpp b/src/ai/api/ai_basestation.hpp index fa103b59e..609d350c2 100644 --- a/src/ai/api/ai_basestation.hpp +++ b/src/ai/api/ai_basestation.hpp @@ -61,6 +61,13 @@ public: * @return The tile the basestation is currently on. */ static TileIndex GetLocation(StationID station_id); + + /** + * Get the last date a station part was added to this station. + * @param station_id The station to look at. + * @return The last date some part of this station was build. + */ + static int32 GetConstructionDate(StationID station_id); }; #endif /* AI_BASESTATION_HPP */ |