(svn r17012) -Add [NoAI]: AIBaseStation::GetConstructionDate

This commit is contained in:
yexo
2009-07-31 22:38:09 +00:00
parent 86b89fda98
commit 1ae6096e3b
3 changed files with 19 additions and 4 deletions

View File

@@ -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;
}