MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / createVehicleIcon

Method createVehicleIcon

game/ui/components/controlgenerator.cpp:105–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105sp<Control> ControlGenerator::createVehicleIcon(GameState &state, sp<Vehicle> vehicle)
106{
107 auto info = createVehicleInfo(state, vehicle);
108 auto icon = createVehicleControl(state, info);
109 icon->Name = VEHICLE_ICON_NAME;
110 icon->setData(mksp<int>(info.passengers));
111
112 return icon;
113}
114
115VehicleTileInfo ControlGenerator::createVehicleInfo(GameState &state, sp<Vehicle> v)
116{

Callers

nothing calls this directly

Calls 1

setDataMethod · 0.80

Tested by

no test coverage detected