use of megamek.common.verifier.TestProtomech in project megameklab by MegaMek.
the class PMSummaryView method refresh.
public void refresh() {
final NumberFormat format = DecimalFormat.getInstance();
final TestProtomech testProto = new TestProtomech(getProtoMek(), entityVerifier.mechOption, null);
txtEngineKg.setText(format.format(testProto.getWeightEngine() * 1000));
txtControlKg.setText(format.format(testProto.getWeightControls() * 1000));
txtHeatKg.setText(format.format(testProto.getWeightHeatSinks() * 1000));
txtStructKg.setText(format.format(testProto.getWeightStructure() * 1000));
txtArmorKg.setText(format.format(testProto.getWeightArmor() * 1000));
txtWeaponsKg.setText(format.format(testProto.getWeightWeapon() * 1000));
txtAmmoKg.setText(format.format(testProto.getWeightAmmo() * 1000));
txtMiscKg.setText(format.format(testProto.getWeightMisc() * 1000));
runThroughEquipment();
}
Aggregations