* Remove all tile objects that belongs to vehicle. */
| 1415 | * Remove all tile objects that belongs to vehicle. |
| 1416 | */ |
| 1417 | void 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). |
no test coverage detected