Ignore:
Timestamp:
03/14/22 08:46:34 (2 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
Phase:
public
Message:

Updates for the new crew and passenger handling (re #357)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/flight.py

    r919 r1033  
    152152
    153153    @property
    154     def numCrew(self):
    155         """Get the number of crew members on the flight."""
    156         return self._gui.numCrew
     154    def numCockpitCrew(self):
     155        """Get the number of cockpit crew members on the flight."""
     156        return self._gui.numCockpitCrew
     157
     158    @property
     159    def numCabinCrew(self):
     160        """Get the number of cabin crew members on the flight."""
     161        return self._gui.numCabinCrew
    157162
    158163    @property
     
    160165        """Get the number of passengers on the flight."""
    161166        return self._gui.numPassengers
     167
     168    @property
     169    def numChildren(self):
     170        """Get the number of child passengers on the flight."""
     171        return self._gui.numChildren
     172
     173    @property
     174    def numInfants(self):
     175        """Get the number of infant passengers on the flight."""
     176        return self._gui.numInfants
    162177
    163178    @property
Note: See TracChangeset for help on using the changeset viewer.