@Override public int getHeatCapacity(boolean includeRadicalHeatSink) { int capacity = (getHeatSinks() * (getHeatType() + 1)); if (includeRadicalHeatSink && hasWorkingMisc(MiscType.F_RADICAL_HEATSINK)) { capacity += Math.ceil(getHeatSinks() * 0.4); } return capacity; }
@Override public int getCountHeatSinks() { if (aero.hasETypeFlag(Entity.ETYPE_CONV_FIGHTER)) { return heatNeutralHSRequirement(); } return aero.getHeatSinks(); }
@Override public void updateConditionFromPart() { if(null != unit && unit.getEntity() instanceof Aero) { if(hits == 0) { Aero a = (Aero)unit.getEntity(); a.setHeatSinks(Math.min(a.getHeatSinks()+1, a.getOHeatSinks())); } } }
@Override public void updateConditionFromPart() { if(null != unit && unit.getEntity() instanceof Aero) { if(hits == 0) { ((Aero)unit.getEntity()).setHeatSinks(((Aero)unit.getEntity()).getHeatSinks()-1); } } }
@Override public void fix() { boolean fixed = needsFixing(); super.fix(); if(fixed && (null != unit) && unit.getEntity() instanceof Aero) { ((Aero) unit.getEntity()).setHeatSinks(((Aero) unit.getEntity()).getHeatSinks() + 1); } }
Aero a = (Aero) entity; sBasic.append(Messages.getString("MechView.HeatSinks")) //$NON-NLS-1$ .append(a.getHeatSinks()); if (a.getHeatCapacity() > a.getHeatSinks()) { sBasic.append(" [") //$NON-NLS-1$ .append(a.getHeatCapacity()).append("]"); //$NON-NLS-1$
output.write(String.valueOf(a.getHeatSinks())); output.write("\"/>"); output.write(CommonConstants.NL);
heatCapWater += ((Mech) en).getActiveSinks(); } else if (en instanceof Aero) { heatCap += ((Aero) en).getHeatSinks(); heatCapWater += ((Aero) en).getHeatSinks();
StringBuilder hsString = new StringBuilder(String.valueOf(a.getHeatSinks())); if (a.getPodHeatSinks() > 0) { hsString.append(" (").append(a.getPodHeatSinks()).append(" ") .append(Messages.getString("MechView.Pod")).append(")"); //$NON-NLS-1$ if (a.getHeatCapacity() > a.getHeatSinks()) { hsString.append(" [") //$NON-NLS-1$ .append(a.getHeatCapacity()).append("]"); //$NON-NLS-1$
retVal += MekHqXmlUtil.indentStr(indentLvl+1) + "<heat sinks=\"" + String.valueOf(a.getHeatSinks()) + "\"/>\n";
@Override public void remove(boolean salvage) { if(null != unit && unit.getEntity() instanceof Aero) { if(hits == 0) { ((Aero)unit.getEntity()).setHeatSinks(((Aero)unit.getEntity()).getHeatSinks()-1); } Part spare = campaign.checkForExistingSparePart(this); if(!salvage) { campaign.removePart(this); } else if(null != spare) { spare.incrementQuantity(); campaign.removePart(this); } unit.removePart(this); Part missing = getMissingPart(); unit.addPart(missing); campaign.addPart(missing, 0); } setUnit(null); updateConditionFromEntity(false); }
cost += sinkCost * getHeatSinks();
blk.writeBlockData("collartype", ((Dropship)t).getCollarType()); blk.writeBlockData("heatsinks", ((Aero)t).getHeatSinks()); blk.writeBlockData("sink_type", ((Aero)t).getHeatType()); if (((Aero)t).getPodHeatSinks() > 0) {