summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_basestation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ai/api/ai_basestation.cpp')
-rw-r--r--src/ai/api/ai_basestation.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ai/api/ai_basestation.cpp b/src/ai/api/ai_basestation.cpp
index c9f68b3f3..0f51383e9 100644
--- a/src/ai/api/ai_basestation.cpp
+++ b/src/ai/api/ai_basestation.cpp
@@ -45,3 +45,10 @@
return ::BaseStation::Get(station_id)->xy;
}
+
+/* static */ int32 AIBaseStation::GetConstructionDate(StationID station_id)
+{
+ if (!IsValidBaseStation(station_id)) return -1;
+
+ return ::BaseStation::Get(station_id)->build_date;
+}