/** * @return The weight of the turret mount, or zero if there isn't one. */ public double getWeightTurret() { int turret = ba.getTurretCapacity(); if (turret > 0) { double weight = turret * 0.01 + 0.03; if (ba.hasModularTurretMount()) { // modular turret has the same base weight as a standard turret with one more slot, // plus another 10 kg for being modular weight += 0.02; } return weight; } return 0; }
public int getNumCrits(int loc){ if (loc == MOUNT_LOC_BODY){ return getBodyCrits(); } else if ((loc == MOUNT_LOC_LARM) || (loc == MOUNT_LOC_RARM)){ return getArmCrits(); } else if (loc == MOUNT_LOC_TURRET) { return getTurretCapacity(); } else { return 0; } }
public int getTotalCrits() { return (getArmCrits() * 2) + getBodyCrits() + getTurretCapacity(); }
buff.append(newline); if (getTurretCapacity() > 0) { buff.append("<turret>"); buff.append(newline); buff.append("Standard:"); buff.append(String.valueOf(getTurretCapacity())); buff.append("</turret>"); buff.append(newline);
public int getBodyCrits() { if(getChassisType() == CHASSIS_TYPE_QUAD) { int turret = 0; if (getTurretCapacity() > 0) { turret = 1; if (hasModularTurretMount()) {
: Messages.getString("TROView.BATurret")); modularMount.put("location", BattleArmor.getBaMountLocAbbr(BattleArmor.MOUNT_LOC_TURRET)); int turretSlots = ba.getTurretCapacity(); if (ba.hasModularTurretMount()) { turretSlots += 2; modularMount.put("slots", turretSlots + " (" + ba.getTurretCapacity() + ")"); modularMount.put("mass", testBA.getWeightTurret() * 1000); setModelData("modularMount", modularMount);
if (ba.getTurretCapacity() > 0) { blk.writeBlockData("turret", (ba.hasModularTurretMount()? "Modular:" : "Standard:") + ba.getTurretCapacity());
return false; if ((loc == BattleArmor.MOUNT_LOC_TURRET) && (ba.getTurretCapacity() == 0)) { return false; && (ba.getTurretCapacity() > 0))) { int otherLoc = (loc == BattleArmor.MOUNT_LOC_BODY)? BattleArmor.MOUNT_LOC_TURRET : BattleArmor.MOUNT_LOC_BODY;