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

Method reachedDestination

src/Savegame/MovingTarget.cpp:176–183  ·  view source on GitHub ↗

* Checks if the moving target has reached its destination. * @return True if it has, False otherwise. */

Source from the content-addressed store, hash-verified

174 * @return True if it has, False otherwise.
175 */
176bool MovingTarget::reachedDestination() const
177{
178 if (_dest == 0)
179 {
180 return false;
181 }
182 return ( AreSame(_dest->getLongitude(), _lon) && AreSame(_dest->getLatitude(), _lat) );
183}
184
185/**
186 * Executes a movement cycle for the moving target.

Callers 1

time5SecondsMethod · 0.80

Calls 3

AreSameFunction · 0.85
getLongitudeMethod · 0.45
getLatitudeMethod · 0.45

Tested by

no test coverage detected