diff options
Diffstat (limited to 'src/ai/api/ai_buoylist.cpp')
-rw-r--r-- | src/ai/api/ai_buoylist.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ai/api/ai_buoylist.cpp b/src/ai/api/ai_buoylist.cpp new file mode 100644 index 000000000..0ba66fb39 --- /dev/null +++ b/src/ai/api/ai_buoylist.cpp @@ -0,0 +1,14 @@ +/* $Id$ */ + +/** @file ai_buoylist.cpp Implementation of AIBuoyList and friends. */ + +#include "ai_buoylist.hpp" +#include "../../station_base.h" + +AIBuoyList::AIBuoyList() +{ + Station *st; + FOR_ALL_STATIONS(st) { + if (st->IsBuoy()) this->AddItem(st->xy); + } +} |