Ignore:
Timestamp:
04/25/24 17:42:48 (3 weeks ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
Phase:
public
Message:

Jetways are not available for aircraft with stairs (re #386).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/rpccommon.py

    r1154 r1156  
    2424               "A" if status==const.PLANE_AWAY else \
    2525               "P" if status==const.PLANE_PARKING else ""
     26
     27    @property
     28    def hasStairs(self):
     29        """Indicate if the plane has its own stairs."""
     30        return self.aircraftType in [const.AIRCRAFT_YK40,
     31                                     const.AIRCRAFT_CRJ2,
     32                                     const.AIRCRAFT_F70,
     33                                     const.AIRCRAFT_DH8D]
    2634
    2735    def _setStatus(self, letter):
Note: See TracChangeset for help on using the changeset viewer.