Creates a list of industries that can produce a given cargo. More...
#include <ai_industrylist.hpp>
Public Member Functions | |
AIIndustryList_CargoProducing (CargoID cargo_id) | |
Static Public Member Functions | |
static const char * | GetClassName () |
Get the name of this class to identify it towards squirrel. |
Creates a list of industries that can produce a given cargo.
Definition at line 48 of file ai_industrylist.hpp.
AIIndustryList_CargoProducing::AIIndustryList_CargoProducing | ( | CargoID | cargo_id | ) |
cargo_id | The cargo this industry should produce. |
Definition at line 35 of file ai_industrylist.cpp.
References AIList::AddItem(), Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem< Tpool >::index, lengthof, and Industry::produced_cargo.
static const char* AIIndustryList_CargoProducing::GetClassName | ( | ) | [inline, static] |
Get the name of this class to identify it towards squirrel.
Reimplemented from AIList.
Definition at line 51 of file ai_industrylist.hpp.