Changeset 898:55da787ce6e1 for src/mlx/acft.py
- Timestamp:
- 03/16/18 08:58:18 (6 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/acft.py
r895 r898 97 97 class Aircraft(object): 98 98 """Base class for aircraft.""" 99 dowCockpit = 2 100 dowCabin = 3 101 99 102 @staticmethod 100 103 def create(flight, bookedFlight): … … 829 832 class B734(Boeing737CL): 830 833 """Boeing 737-400 aircraft.""" 834 dow = 35100 835 831 836 def __init__(self, flight): 832 837 super(B734, self).__init__(flight) 833 self.dow = 35100834 838 self.mtow = 62822 835 839 self.mlw = 54885 … … 1301 1305 #--------------------------------------------------------------------------------------- 1302 1306 1307 def setupTypes(aircraftTypes): 1308 """Setup the values in the given types using the info retrieved 1309 from the server.""" 1310 for aircraftTypeInfo in aircraftTypes: 1311 clazz = getClass(aircraftTypeInfo.aircraftType) 1312 1313 clazz.dow = aircraftTypeInfo.dow 1314 clazz.dowCockpit = aircraftTypeInfo.dowCockpit 1315 clazz.dowCabin = aircraftTypeInfo.dowCabin 1316 1317 #--------------------------------------------------------------------------------------- 1318 1303 1319 if __name__ == "__main__": 1304 1320 value = SmoothedValue()
Note:
See TracChangeset
for help on using the changeset viewer.