@Override public String getLocationDamage(int loc) { String toReturn = ""; if(getInternal(loc)<0) { return toReturn; } boolean first = true; for(Mounted m : getEquipment()) { if(m.isMissingForTrooper(loc)) { if (!first) { toReturn += ", "; } toReturn += m.getName(); first = false; } } return toReturn; }
for (Mounted m : getEquipment()) {
@Override public void addBattleForceSpecialAbilities(Map<BattleForceSPA,Integer> specialAbilities) { super.addBattleForceSpecialAbilities(specialAbilities); for (Mounted m : getEquipment()) { if (!(m.getType() instanceof MiscType)) { continue;
Map<String, Object> row = null; int nameWidth = 30; for (final Mounted m : ba.getEquipment()) { if (m.isAPMMounted() || (m.getType() instanceof InfantryAttack) || (m.getType() == armor)) { continue;
BAManipulator laManipType = BAManipulator.NONE; BAManipulator raManipType = BAManipulator.NONE; for (Mounted m : ba.getEquipment()) { if (m.getType().hasFlag(MiscType.F_BA_MANIPULATOR)) { if (m.getBaMountLoc() == BattleArmor.MOUNT_LOC_LARM) {
(ba.canDoMechanizedBA() && (ba.getWeightClass() < EntityWeightClass.WEIGHT_HEAVY)) ? "Yes" : "No"); setModelData("mechanized", ba.canDoMechanizedBA() ? "Yes" : "No"); setModelData("antiPersonnel", ba.getEquipment().stream().anyMatch(m -> m.isAPMMounted()) ? "Yes" : "No"); new FormatTableRowMethod(new int[] { nameWidth, 8, 12, 8 }, new Justification[] { Justification.LEFT, Justification.CENTER, Justification.CENTER, Justification.CENTER })); if (ba.getEquipment().stream().anyMatch(m -> m.getBaMountLoc() == BattleArmor.MOUNT_LOC_TURRET)) { final Map<String, Object> modularMount = new HashMap<>(); modularMount.put("name", ba.hasModularTurretMount() ? Messages.getString("TROView.BAModularTurret")
Mounted squadSupportWeapon = null; for (Mounted m : ba.getEquipment()) {
for (Mounted mounted : getEquipment()) { if ((mounted.getType() instanceof MiscType) && ((MiscType) mounted.getType()).hasFlag(MiscType.F_BA_MANIPULATOR)) {
return false; for (Mounted m : ba.getEquipment()) { int otherLoc = (loc == BattleArmor.MOUNT_LOC_BODY)? BattleArmor.MOUNT_LOC_TURRET : BattleArmor.MOUNT_LOC_BODY; for (Mounted m : ba.getEquipment()) { if (m.getBaMountLoc() == otherLoc && (m.getLocation() == trooper