| 103 | } |
| 104 | |
| 105 | sp<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 | |
| 115 | VehicleTileInfo ControlGenerator::createVehicleInfo(GameState &state, sp<Vehicle> v) |
| 116 | { |