Package megamek.client.generator
Class MunitionWeightCollection
java.lang.Object
megamek.client.generator.MunitionWeightCollection
-
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated, for removal: This API element is subject to removal in a future version.voidvoidDeprecated, for removal: This API element is subject to removal in a future version.voidvoidvoidDeprecated, for removal: This API element is subject to removal in a future version.voidvoidvoidvoidDeprecated, for removal: This API element is subject to removal in a future version.voidvoiddecreaseMunitions(List<String> munitions) voidDeprecated, for removal: This API element is subject to removal in a future version.voidvoidvoidgetAboveCutoff(double cutoff) Select all munitions with weights above the cutoff value.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.getMunitionTypesInWeightOrder(Map<String, Double> weightMap) getMunitionWeights(String key) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.getTopN(int count) Select the top N weighted munitions of each type, where N is the count to include.voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidincreaseMunitions(List<String> munitions) voidvoidvoidvoidDeprecated, for removal: This API element is subject to removal in a future version.voidsetIncendiary(HashMap<String, Double> original) We want to be able to search for valid LRM munitions types that also include 'w/ Incendiary', without having to track every IS/Clan, rack size, Mek/BA/Infantry weapon, OS/not OS, etc.voidzeroMunitionsWeight(List<String> munitions)
-
Method Details
-
resetWeights
public void resetWeights() -
setIncendiary
We want to be able to search for valid LRM munitions types that also include 'w/ Incendiary', without having to track every IS/Clan, rack size, Mek/BA/Infantry weapon, OS/not OS, etc. combination.For now, MunitionTree adds a version of each ammo type string with ' w/ Incendiary' appended; here we set the weights at 0.8 x the original value (representing 20% damage loss from Incendiary).
- Returns:
- original, but modified
-
increaseMunitions
-
decreaseMunitions
-
zeroMunitionsWeight
-
increaseAPMunitions
public void increaseAPMunitions() -
decreaseAPMunitions
public void decreaseAPMunitions() -
increaseFlakMunitions
public void increaseFlakMunitions() -
decreaseFlakMunitions
public void decreaseFlakMunitions() -
increaseAccurateMunitions
public void increaseAccurateMunitions() -
decreaseAccurateMunitions
Deprecated, for removal: This API element is subject to removal in a future version. -
increaseAntiInfMunitions
public void increaseAntiInfMunitions() -
decreaseAntiInfMunitions
public void decreaseAntiInfMunitions() -
increaseAntiBAMunitions
public void increaseAntiBAMunitions() -
decreaseAntiBAMunitions
Deprecated, for removal: This API element is subject to removal in a future version. -
increaseHeatMunitions
public void increaseHeatMunitions() -
decreaseHeatMunitions
public void decreaseHeatMunitions() -
increaseIlluminationMunitions
public void increaseIlluminationMunitions() -
decreaseIlluminationMunitions
public void decreaseIlluminationMunitions() -
increaseUtilityMunitions
Deprecated, for removal: This API element is subject to removal in a future version. -
decreaseUtilityMunitions
public void decreaseUtilityMunitions() -
increaseArtilleryUtilityMunitions
public void increaseArtilleryUtilityMunitions() -
decreaseArtilleryUtilityMunitions
Deprecated, for removal: This API element is subject to removal in a future version. -
increaseGuidedMunitions
public void increaseGuidedMunitions() -
increaseTagGuidedMunitions
public void increaseTagGuidedMunitions() -
increaseNARCGuidedMunitions
public void increaseNARCGuidedMunitions() -
decreaseGuidedMunitions
public void decreaseGuidedMunitions() -
decreaseTagGuidedMunitions
public void decreaseTagGuidedMunitions() -
decreaseNARCGuidedMunitions
Deprecated, for removal: This API element is subject to removal in a future version. -
increaseAmmoReducingMunitions
public void increaseAmmoReducingMunitions() -
decreaseAmmoReducingMunitions
public void decreaseAmmoReducingMunitions() -
increaseSeekingMunitions
public void increaseSeekingMunitions() -
decreaseSeekingMunitions
public void decreaseSeekingMunitions() -
increaseHighPowerMunitions
public void increaseHighPowerMunitions() -
decreaseHighPowerMunitions
Deprecated, for removal: This API element is subject to removal in a future version. -
getMunitionTypesInWeightOrder
-
getAboveCutoff
Select all munitions with weights above the cutoff value.- Parameters:
cutoff- Double cutoff weight; munitions with this weight or lower are discarded- Returns:
- HashMap of lists of munitions, by weapon type, in weight order
-
getTopN
Select the top N weighted munitions of each type, where N is the count to include.- Parameters:
count- Int count of top munition types to include.- Returns:
- HashMap of lists of munitions, by weapon type, in weight order
-
getLrmWeights
-
getSrmWeights
-
getAcWeights
Deprecated, for removal: This API element is subject to removal in a future version. -
getAtmWeights
Deprecated, for removal: This API element is subject to removal in a future version. -
getArrowWeights
Deprecated, for removal: This API element is subject to removal in a future version. -
getLongTomWeights
-
getSniperWeights
Deprecated, for removal: This API element is subject to removal in a future version. -
getThumperWeights
Deprecated, for removal: This API element is subject to removal in a future version. -
getBombWeights
-
getLongTomCannonWeights
@Deprecated(since="0.51.0", forRemoval=true) public HashMap<String,Double> getLongTomCannonWeights()Deprecated, for removal: This API element is subject to removal in a future version. -
getSniperCannonWeights
Deprecated, for removal: This API element is subject to removal in a future version. -
getThumperCannonWeights
@Deprecated(since="0.51.0", forRemoval=true) public HashMap<String,Double> getThumperCannonWeights()Deprecated, for removal: This API element is subject to removal in a future version. -
getMortarWeights
Deprecated, for removal: This API element is subject to removal in a future version. -
getMunitionWeights
-