Creates a list of vehicles that are in a group. More...
#include <ai_vehiclelist.hpp>
Public Member Functions | |
AIVehicleList_Group (GroupID group_id) | |
Static Public Member Functions | |
static const char * | GetClassName () |
Get the name of this class to identify it towards squirrel. |
Creates a list of vehicles that are in a group.
Definition at line 83 of file ai_vehiclelist.hpp.
AIVehicleList_Group::AIVehicleList_Group | ( | GroupID | group_id | ) |
group_id | The ID of the group the vehicles are in. |
Definition at line 108 of file ai_vehiclelist.cpp.
References _current_company, AIList::AddItem(), FOR_ALL_VEHICLES, Vehicle::group_id, Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tcache, Tzero >::PoolItem< Tpool >::index, Vehicle::IsPrimaryVehicle(), AIGroup::IsValidGroup(), and Vehicle::owner.
static const char* AIVehicleList_Group::GetClassName | ( | ) | [inline, static] |
Get the name of this class to identify it towards squirrel.
Reimplemented from AIList.
Definition at line 86 of file ai_vehiclelist.hpp.