Exemple #1
0
        // CLASS

        /// <summary>
        /// cTor: Create a new aircraft model
        /// Creates a GA model for the smaller AC types, a Jet model for all others
        /// Jet model allows for extended operating ranges
        /// </summary>
        /// <param name="route">A commandlist of segments to fly</param>
        public VFRvAcft(CmdList route)
            : base(route)
        {
            // select the Flight model according to acft type (use the types above for GA)
            if (AircraftSelection.GA_AircraftTypes.Contains(route.Descriptor.AircraftType))
            {
                m_model = new GAModel(route);
            }
            else
            {
                m_model = new JetModel(route);
            }
        }
Exemple #2
0
        // CLASS

        /// <summary>
        /// cTor: Create a new Airliner, Jet aircraft type
        /// </summary>
        /// <param name="route">Segment list to fly</param>
        public IFRvAcft(CmdList route)
            : base(route)
        {
            m_model = new JetModel(route);
        }