* Handle destination changes, making sure to delete old waypoint destinations. * @param dest Pointer to the new destination. */
| 632 | * @param dest Pointer to the new destination. |
| 633 | */ |
| 634 | void Ufo::setDestination(Target *dest) |
| 635 | { |
| 636 | Waypoint *old = dynamic_cast<Waypoint*>(_dest); |
| 637 | MovingTarget::setDestination(dest); |
| 638 | delete old; |
| 639 | } |
| 640 | |
| 641 | int Ufo::getShootingAt() const |
| 642 | { |
no outgoing calls
no test coverage detected