* 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. */
| 601 | * @param trajectory Pointer to the actual mission trajectory. |
| 602 | */ |
| 603 | void 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. |
no test coverage detected