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

Method removeFromMap

game/state/city/vehicle.cpp:1417–1434  ·  view source on GitHub ↗

* Remove all tile objects that belongs to vehicle. */

Source from the content-addressed store, hash-verified

1415 * Remove all tile objects that belongs to vehicle.
1416 */
1417void Vehicle::removeFromMap(GameState &state)
1418{
1419 if (smokeDoodad)
1420 {
1421 smokeDoodad->remove(state);
1422 smokeDoodad = nullptr;
1423 }
1424 if (shadowObject)
1425 {
1426 shadowObject->removeFromMap();
1427 shadowObject = nullptr;
1428 }
1429 if (tileObject)
1430 {
1431 tileObject->removeFromMap();
1432 tileObject = nullptr;
1433 }
1434}
1435
1436/**
1437 * Set the vehicle crashed (or not).

Callers 14

~GameStateMethod · 0.45
dieMethod · 0.45
repairMethod · 0.45
~CityMethod · 0.45
removeMethod · 0.45
dieMethod · 0.45
~ProjectileMethod · 0.45
dieMethod · 0.45
dieMethod · 0.45
~BattleMethod · 0.45
initialMapPartRemovalMethod · 0.45
dieMethod · 0.45

Calls 1

removeMethod · 0.80

Tested by

no test coverage detected