Updated licensing information.
[VesselSimulator.git] / KerbalEngineer / Flight / Readouts / Orbital / ApoapsisHeight.cs
blob:a/KerbalEngineer/Flight/Readouts/Orbital/ApoapsisHeight.cs -> blob:b/KerbalEngineer/Flight/Readouts/Orbital/ApoapsisHeight.cs
--- a/KerbalEngineer/Flight/Readouts/Orbital/ApoapsisHeight.cs
+++ b/KerbalEngineer/Flight/Readouts/Orbital/ApoapsisHeight.cs
@@ -1,36 +1,52 @@
-//     Kerbal Engineer Redux

-// 

-//     Copyright (C) 2014 CYBUTEK

-// 

-//     This program is free software: you can redistribute it and/or modify

-//     it under the terms of the GNU General Public License as published by

-//     the Free Software Foundation, either version 3 of the License, or

-//     (at your option) any later version.

-// 

-//     This program is distributed in the hope that it will be useful,

-//     but WITHOUT ANY WARRANTY; without even the implied warranty of

-//     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

-//     GNU General Public License for more details.

-// 

-//     You should have received a copy of the GNU General Public License

-//     along with this program.  If not, see <http://www.gnu.org/licenses/>.

-// 

-

-namespace KerbalEngineer.Flight.Readouts.Orbital

-{

-    public class ApoapsisHeight : ReadoutModule

-    {

-        public ApoapsisHeight()

-        {

-            this.Name = "Apoapsis Height";

-            this.Category = ReadoutCategory.Orbital;

-            this.HelpString = "Shows the vessel's apoapsis height relative to sea level.  (Apoapsis is the highest point of an orbit.)";

-            this.IsDefault = true;

-        }

-

-        public override void Draw()

-        {

-            this.DrawLine(FlightGlobals.ship_orbit.ApA.ToString("N0") + "m");

-        }

-    }

+// 
+//     Kerbal Engineer Redux
+// 
+//     Copyright (C) 2014 CYBUTEK
+// 
+//     This program is free software: you can redistribute it and/or modify
+//     it under the terms of the GNU General Public License as published by
+//     the Free Software Foundation, either version 3 of the License, or
+//     (at your option) any later version.
+// 
+//     This program is distributed in the hope that it will be useful,
+//     but WITHOUT ANY WARRANTY; without even the implied warranty of
+//     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+//     GNU General Public License for more details.
+// 
+//     You should have received a copy of the GNU General Public License
+//     along with this program.  If not, see <http://www.gnu.org/licenses/>.
+// 
+
+#region Using Directives
+
+using KerbalEngineer.Extensions;
+using KerbalEngineer.Flight.Sections;
+
+#endregion
+
+namespace KerbalEngineer.Flight.Readouts.Orbital
+{
+    public class ApoapsisHeight : ReadoutModule
+    {
+        #region Constructors
+
+        public ApoapsisHeight()
+        {
+            this.Name = "Apoapsis Height";
+            this.Category = ReadoutCategory.GetCategory("Orbital");
+            this.HelpString = "Shows the vessel's apoapsis height relative to sea level. (Apoapsis is the highest point of an orbit.)";
+            this.IsDefault = true;
+        }
+
+        #endregion
+
+        #region Methods: public
+
+        public override void Draw(SectionModule section)
+        {
+            this.DrawLine(FlightGlobals.ship_orbit.ApA.ToDistance(), section.IsHud);
+        }
+
+        #endregion
+    }
 }