parameters: (self)
return_statement: return [get_ship_combat_stats(ship_id=ship_id, max_stats=self._max_stats) for ship_id in fleet.shipIDs]
docstring: Calculate fleet combat stats (i.e. the stats of all its ships).
docstring_summary: Calculate fleet combat stats (i.e. the stats of all its ships).
docstring_tokens: Calculate fleet combat stats ( i . e . the stats of all its ships ) .
function: def _get_stats_from_fleet(self):
          """Calculate fleet combat stats (i.e. the stats of all its ships)."""
          universe = fo.getUniverse()
          fleet = universe.getFleet(self._fleet_id)
          if not fleet:
              return []
          return [get_ship_combat_stats(ship_id=ship_id, max_stats=self._max_stats) for ship_id in fleet.shipIDs]
function_tokens: def _get_stats_from_fleet ( self ) : universe = fo . getUniverse ( ) fleet = universe . getFleet ( self . _fleet_id ) if not fleet : return [ ] return [ get_ship_combat_stats ( ship_id = ship_id , max_stats = self . _max_stats ) for ship_id in fleet . shipIDs ]