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

Method setMissionInfo

src/Savegame/Ufo.cpp:603–610  ·  view source on GitHub ↗

* Sets the mission information of the UFO. * The UFO will start at the first point of the trajectory. The actual UFO * information is not changed here, this only sets the information kept on * behalf of the mission. * @param mission Pointer to the actual mission object. * @param trajectory Pointer to the actual mission trajectory. */

Source from the content-addressed store, hash-verified

601 * @param trajectory Pointer to the actual mission trajectory.
602 */
603void Ufo::setMissionInfo(AlienMission *mission, const UfoTrajectory *trajectory)
604{
605 assert(!_mission && mission && trajectory);
606 _mission = mission;
607 _mission->increaseLiveUfos();
608 _trajectoryPoint = 0;
609 _trajectory = trajectory;
610}
611
612/**
613 * Returns whether this UFO has been detected by hyper-wave.

Callers 1

spawnUfoMethod · 0.80

Calls 1

increaseLiveUfosMethod · 0.80

Tested by

no test coverage detected