AIIndustryList_CargoAccepting Class Reference
[Classes that create a list of items.]

Creates a list of industries that accepts a given cargo. More...

#include <ai_industrylist.hpp>

Inheritance diagram for AIIndustryList_CargoAccepting:
AIList AIObject SimpleCountedObject

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.

Detailed Description

Creates a list of industries that accepts a given cargo.

Definition at line 32 of file ai_industrylist.hpp.


Constructor & Destructor Documentation

AIIndustryList_CargoAccepting::AIIndustryList_CargoAccepting ( CargoID  cargo_id  ) 
Parameters:
cargo_id The cargo this industry should accept.

Definition at line 23 of file ai_industrylist.cpp.

References Industry::accepts_cargo, AIList::AddItem(), Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tcache, Tzero >::PoolItem< Tpool >::index, and lengthof.


Member Function Documentation

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.


The documentation for this class was generated from the following files:

Generated on Sun Jan 9 16:02:37 2011 for OpenTTD by  doxygen 1.6.1