コード例 #1
0
ファイル: AATPoint.cpp プロジェクト: hnpilot/XCSoar
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;
}
コード例 #2
0
ファイル: AATPoint.cpp プロジェクト: Mrdini/XCSoar
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;
}