From 674df0c4cdeee1ed6d29a05cda84612dff9f3b68 Mon Sep 17 00:00:00 2001
From: curt <curt>
Date: Wed, 12 Jul 2006 19:10:35 +0000
Subject: [PATCH] Add a "ufo" performance entry for the AI Aircraft.  This
 gives very agressive accel/decel and climb/decend performance which is useful
 for some scripting scenarios.

---
 src/AIModel/AIAircraft.cxx | 6 +++++-
 src/AIModel/AIAircraft.hxx | 9 ++++++++-
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/src/AIModel/AIAircraft.cxx b/src/AIModel/AIAircraft.cxx
index b66052785..d759d7d12 100644
--- a/src/AIModel/AIAircraft.cxx
+++ b/src/AIModel/AIAircraft.cxx
@@ -58,7 +58,9 @@ const FGAIAircraft::PERF_STRUCT FGAIAircraft::settings[] = {
     // jet_fighter
     {7.0, 3.0, 4000.0, 2000.0, 150.0, 350.0, 500.0, 350.0, 150.0},
     // tanker
-    {5.0, 2.0, 3000.0, 1500.0, 140.0, 300.0, 430.0, 300.0, 130.0}
+    {5.0, 2.0, 3000.0, 1500.0, 140.0, 300.0, 430.0, 300.0, 130.0},
+    // ufo (extreme accel/decel)
+    {30.0, 30.0, 6000.0, 6000.0, 150.0, 300.0, 430.0, 300.0, 130.0}
 };
 
 
@@ -150,6 +152,8 @@ void FGAIAircraft::setPerformance(const std::string& acclass) {
     } else if (acclass == "tanker") {
         SetPerformance(&FGAIAircraft::settings[FGAIAircraft::JET_TRANSPORT]);
         SetTanker(true);
+    } else if (acclass == "ufo") {
+        SetPerformance(&FGAIAircraft::settings[FGAIAircraft::UFO]);
     } else {
         SetPerformance(&FGAIAircraft::settings[FGAIAircraft::JET_TRANSPORT]);
     }
diff --git a/src/AIModel/AIAircraft.hxx b/src/AIModel/AIAircraft.hxx
index d1f18641e..b50ea691f 100644
--- a/src/AIModel/AIAircraft.hxx
+++ b/src/AIModel/AIAircraft.hxx
@@ -47,7 +47,14 @@ private:
     } PERF_STRUCT;
 
 public:
-    enum aircraft_e {LIGHT=0, WW2_FIGHTER, JET_TRANSPORT, JET_FIGHTER, TANKER};
+    enum aircraft_e {
+        LIGHT = 0,
+        WW2_FIGHTER,
+        JET_TRANSPORT,
+        JET_FIGHTER,
+        TANKER,
+        UFO
+    };
     static const PERF_STRUCT settings[];
 
     FGAIAircraft(FGAISchedule *ref=0);