MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / setDestination

Method setDestination

src/Savegame/Ufo.cpp:634–639  ·  view source on GitHub ↗

* Handle destination changes, making sure to delete old waypoint destinations. * @param dest Pointer to the new destination. */

Source from the content-addressed store, hash-verified

632 * @param dest Pointer to the new destination.
633 */
634void Ufo::setDestination(Target *dest)
635{
636 Waypoint *old = dynamic_cast<Waypoint*>(_dest);
637 MovingTarget::setDestination(dest);
638 delete old;
639}
640
641int Ufo::getShootingAt() const
642{

Callers 8

spawnUfoMethod · 0.45
ufoReachedWaypointMethod · 0.45
btnOkClickMethod · 0.45
btnPatrolClickMethod · 0.45
btnCancelClickMethod · 0.45
time5SecondsMethod · 0.45
btnOkClickMethod · 0.45
moveMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected