Creates a list of vehicles that are in a group. More...
#include <script_vehiclelist.hpp>
Public Member Functions | |
ScriptVehicleList_Group (GroupID group_id) |
Creates a list of vehicles that are in a group.
ai
Definition at line 77 of file script_vehiclelist.hpp.
ScriptVehicleList_Group::ScriptVehicleList_Group | ( | GroupID | group_id | ) |
group_id | The ID of the group the vehicles are in. |
Definition at line 108 of file script_vehiclelist.cpp.
References _current_company, ScriptList::AddItem(), FOR_ALL_VEHICLES, Vehicle::group_id, Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem< Tpool >::index, Vehicle::IsPrimaryVehicle(), ScriptGroup::IsValidGroup(), and Vehicle::owner.