bool AATPoint::check_target(const AIRCRAFT_STATE& state) { bool moved = false; if (isInSector(state)) { moved = check_target_inside(state); } else { moved = check_target_outside(state); } return moved; }
bool AATPoint::check_target(const AIRCRAFT_STATE& state, const bool known_outside) { if ((getActiveState() == CURRENT_ACTIVE) && (m_target_locked)) { return false; } bool moved = false; if (!known_outside && isInSector(state)) { moved = check_target_inside(state); } else { moved = check_target_outside(state); } return moved; }