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