(svn r16585) -Add [NoAI]: AIBuoyList to get a list of all buoys
This commit is contained in:
14
src/ai/api/ai_buoylist.cpp
Normal file
14
src/ai/api/ai_buoylist.cpp
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user