Ejemplo n.º 1
0
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;
}
Ejemplo n.º 2
0
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;
}