ArrayList<String> left = new ArrayList<String>(); if (isSupportVehicle()) { left.add("Chassis"); if (isSupportVehicle()) { left.add("Final Structural Cost"); } else { left.add("Turret"); left.add("Equipment"); if (!isSupportVehicle()) { left.add("Lift Equipment"); if (!isSupportVehicle()) {
protected static Structure getStructure(Tank tank) { if (tank.isSupportVehicle()) { return new SupportVeeStructure(tank); } int type = EquipmentType.T_STRUCTURE_STANDARD; if (tank.getStructureType() == 1) { type = EquipmentType.T_STRUCTURE_ENDO_STEEL; } return new Structure(type, tank.isSuperHeavy(), tank.getMovementMode()); }
@Override public boolean hasCommandConsoleBonus() { if (!hasWorkingMisc(MiscType.F_COMMAND_CONSOLE) || isCommanderHit() || isUsingConsoleCommander()) { return false; } if (isSupportVehicle()) { return getWeightClass() >= EntityWeightClass.WEIGHT_LARGE_SUPPORT && hasWorkingMisc(MiscType.F_ADVANCED_FIRECONTROL); } else { return getWeightClass() >= EntityWeightClass.WEIGHT_HEAVY; } }
public void addBattleForceSpecialAbilities(Map<BattleForceSPA,Integer> specialAbilities) { super.addBattleForceSpecialAbilities(specialAbilities); if (!isSupportVehicle()) { specialAbilities.put(BattleForceSPA.SRCH, null);
if (isSupportVehicle()) { if (hasWorkingMisc(MiscType.F_TRACTOR_MODIFICATION)) { hitchNeeded = true;
int i = 0; if (isSupportVehicle()) { double chassisCost = 2500 * SupportVeeStructure.getWeightStructure(this); if (hasMisc(MiscType.F_AMPHIBIOUS)) { if (isSupportVehicle()) { engineCost = 5000 * getEngine().getWeightEngine(this); switch (getEngine().getEngineType()) { if (isSupportVehicle()) { int totalArmorPoints = 0; for (int loc = 0; loc < locations(); loc++) { if (isSupportVehicle()) { structCostIdx = i++; costs[structCostIdx] = 0; if (!isSupportVehicle()) { double diveTonnage; switch (movementMode) { costs[i++] = -multiplier; if (!isSupportVehicle()) { if (hasWorkingMisc(MiscType.F_FLOTATION_HULL) || hasWorkingMisc(MiscType.F_VACUUM_PROTECTION)
setModelData("isVTOL", tank.hasETypeFlag(Entity.ETYPE_VTOL)); setModelData("isSuperheavy", tank.isSuperHeavy()); setModelData("isSupport", tank.isSupportVehicle()); setModelData("hasTurret", !tank.hasNoTurret()); setModelData("hasTurret2", !tank.hasNoDualTurret());
public double getTankWeightTurret() { double weight = 0; // For omni vees, the base chassis sets a turret weight if (tank.isOmni() && tank.getBaseChassisTurretWeight() >= 0) { weight = tank.getBaseChassisTurretWeight(); } else { // For non-omnis, count up the weight of eq in the turret for (Mounted m : tank.getEquipment()) { if ((m.getLocation() == tank.getLocTurret()) && !(m.getType() instanceof AmmoType)) { weight += m.getType().getTonnage(tank); } } // Turrets weight 10% of the weight of weapons in them weight = weight / 10.0f; } if (tank.isSupportVehicle()) { if (getEntity().getWeight() < 5) { return TestEntity.ceil(weight, Ceil.KILO); } else { return TestEntity.ceil(weight, Ceil.HALFTON); } } else { return TestEntity.ceilMaxHalf(weight, getWeightCeilingTurret()); } }
if (tank.isSupportVehicle()) { if (getEntity().getWeight() < 5) { turretWeight = TestEntity.ceil(turretWeight, Ceil.KILO);
setModelData("isVTOL", tank.hasETypeFlag(Entity.ETYPE_VTOL)); setModelData("isSuperheavy", tank.isSuperHeavy()); setModelData("isSupport", tank.isSupportVehicle()); setModelData("hasTurret", !tank.hasNoTurret()); setModelData("hasTurret2", !tank.hasNoDualTurret());