* Checks if the moving target has reached its destination. * @return True if it has, False otherwise. */
| 174 | * @return True if it has, False otherwise. |
| 175 | */ |
| 176 | bool 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. |
no test coverage detected