(svn r16585) -Add [NoAI]: AIBuoyList to get a list of all buoys

This commit is contained in:
yexo
2009-06-17 13:12:08 +00:00
parent 121a569125
commit d09d3566dd
9 changed files with 92 additions and 0 deletions

View File

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