Package mekhq.campaign.unit
Class HangarStatistics
java.lang.Object
mekhq.campaign.unit.HangarStatistics
Provides methods to gather statistics on units in a hangar.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getNumberOfUnitsByType
(long type) int
getNumberOfUnitsByType
(long type, boolean inTransit) int
getNumberOfUnitsByType
(long type, boolean inTransit, boolean lv) int
getOccupiedBays
(long type) int
getOccupiedBays
(long type, boolean lv) int
int
int
int
int
int
int
int
int
tallyBaysByType
(boolean inTransit) Tally all used bay types and return a hashmap of ETYPE : Count
-
Constructor Details
-
HangarStatistics
-
-
Method Details
-
getHangar
-
getNumberOfUnitsByType
public int getNumberOfUnitsByType(long type) -
getNumberOfUnitsByType
public int getNumberOfUnitsByType(long type, boolean inTransit) -
tallyBaysByType
Tally all used bay types and return a hashmap of ETYPE : Count- Parameters:
inTransit
-- Returns:
-
getNumberOfUnitsByType
public int getNumberOfUnitsByType(long type, boolean inTransit, boolean lv) -
getOccupiedBays
public int getOccupiedBays(long type) -
getOccupiedBays
public int getOccupiedBays(long type, boolean lv) -
getTotalMekBays
public int getTotalMekBays() -
getTotalASFBays
public int getTotalASFBays() -
getTotalSmallCraftBays
public int getTotalSmallCraftBays() -
getTotalBattleArmorBays
public int getTotalBattleArmorBays() -
getTotalInfantryBays
public int getTotalInfantryBays() -
getTotalHeavyVehicleBays
public int getTotalHeavyVehicleBays() -
getTotalLightVehicleBays
public int getTotalLightVehicleBays() -
getTotalProtomekBays
public int getTotalProtomekBays() -
getTotalDockingCollars
public int getTotalDockingCollars()
-