src/ai/api/ai_stationlist.cpp
branchnoai
changeset 9636 1005ffccf641
child 9638 f6d169a5a45a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/ai/api/ai_stationlist.cpp	Thu Jul 12 15:05:24 2007 +0000
@@ -0,0 +1,11 @@
+#include "ai_stationlist.hpp"
+#include "../../player.h"
+#include "../../station.h"
+
+AIStationList::AIStationList(AIStationList::StationType type)
+{
+	Station *st;
+	FOR_ALL_STATIONS(st) {
+		if (st->owner == _current_player && (type == AIStationList::STATION_ANY || (st->facilities & type) != 0)) this->AddItem(st->index);
+	}
+}