public static String getBaArmorTypeName(int armorType, boolean clan) { return getArmorTypeName(armorType, clan); }
public String getShortName() { return "(" + EquipmentType.getArmorTypeName(armorType) + ")"; }
public static String getBaArmorTypeName(int armorType) { return getArmorTypeName(armorType); }
protected String formatArmorType(int at, boolean trim) { // Some types do not have armor on the first location, and others have only a // single location if (trim && (at == EquipmentType.T_ARMOR_STANDARD)) { return ""; } String name = EquipmentType.getArmorTypeName(at); if (trim) { name = name.replace("-Fibrous", "").replace("-Aluminum", ""); } return name; }
/** * @return The <code>MiscType</code> for this armor. */ public EquipmentType getArmorEqType() { String name = EquipmentType.getArmorTypeName(type, isClan); return EquipmentType.get(name); } }
/** * @return The <code>MiscType</code> for this armor. */ public EquipmentType getArmor() { String name = EquipmentType.getArmorTypeName(type, isClan); return EquipmentType.get(name); } }
/** * @return The {@link MiscType} for this armor. */ public EquipmentType getArmorEqType() { String name = EquipmentType.getArmorTypeName(type, isClan); return EquipmentType.get(name); }
/** * @return The <code>MiscType</code> for this armor. */ public EquipmentType getArmorEqType() { String name = EquipmentType.getArmorTypeName(type, isClan); return EquipmentType.get(name); } }
/** * @return The <code>MiscType</code> for this armor. */ public EquipmentType getArmorEqType() { String name = EquipmentType.getArmorTypeName(type, isClan); return EquipmentType.get(name); } }
public void setArmorType(int armType, boolean addMount) { super.setArmorType(armType); if ((armType == EquipmentType.T_ARMOR_STEALTH_VEHICLE) && addMount) { try { this.addEquipment( EquipmentType.get(EquipmentType.getArmorTypeName(EquipmentType.T_ARMOR_STEALTH_VEHICLE, false)), LOC_AFT); } catch (LocationFullException e) { // this should never happen } } }
public void setArmorType(int armType, boolean addMount) { super.setArmorType(armType); if ((armType == EquipmentType.T_ARMOR_STEALTH_VEHICLE) && addMount) { try { this.addEquipment(EquipmentType.get(EquipmentType .getArmorTypeName( EquipmentType.T_ARMOR_STEALTH_VEHICLE, false)), LOC_BODY); } catch (LocationFullException e) { // this should never happen } } }
@Override public String printWeightArmor() { String armorName = EquipmentType.getArmorTypeName(ba .getArmorType(BattleArmor.LOC_SQUAD), TechConstants.isClan(ba .getArmorTechLevel(BattleArmor.LOC_SQUAD))); return StringUtil.makeLength( "Armor: " + Integer.toString(getTotalOArmor()) + " " + armorName, getPrintSize() - 5) + TestEntity.makeWeightString(getWeightArmor()) + "\n"; }
public static MiscType createCLFerroAlum() { MiscType misc = new MiscType(); misc.name = EquipmentType.getArmorTypeName(EquipmentType.T_ARMOR_ALUM); misc.setInternalName(EquipmentType.getArmorTypeName(EquipmentType.T_ARMOR_ALUM, true)); misc.addLookupName("Clan Ferro-Aluminum Armor"); misc.tonnage = TONNAGE_VARIABLE; misc.hittable = false; misc.spreadable = true; misc.flags = misc.flags.or(F_FERRO_FIBROUS).or(F_FIGHTER_EQUIPMENT).or(F_SC_EQUIPMENT).or(F_DS_EQUIPMENT); misc.omniFixedOnly = true; misc.bv = 0; misc.rulesRefs = "205,TM"; misc.techAdvancement.setTechBase(TECH_BASE_CLAN).setTechRating(RATING_F) .setAvailability(RATING_X, RATING_E, RATING_D, RATING_C) .setClanAdvancement(2820, 2825, 2830, DATE_NONE, DATE_NONE) .setClanApproximate(true, true, false, false, false).setPrototypeFactions(F_CSR) .setProductionFactions(F_CSR); return misc; }
public static MiscType createISFerroAlum() { MiscType misc = new MiscType(); misc.name = EquipmentType.getArmorTypeName(EquipmentType.T_ARMOR_ALUM); misc.setInternalName(EquipmentType.getArmorTypeName(EquipmentType.T_ARMOR_ALUM, false)); misc.addLookupName("IS Ferro-Aluminum Armor"); misc.tonnage = TONNAGE_VARIABLE; misc.hittable = false; misc.spreadable = true; misc.flags = misc.flags.or(F_FERRO_FIBROUS).or(F_FIGHTER_EQUIPMENT).or(F_SC_EQUIPMENT).or(F_DS_EQUIPMENT); misc.omniFixedOnly = true; misc.bv = 0; misc.rulesRefs = "205,TM"; misc.techAdvancement.setTechBase(TECH_BASE_IS).setTechRating(RATING_E) .setAvailability(RATING_D, RATING_F, RATING_D, RATING_C).setISAdvancement(2557, 2571, 3055, 2810, 3040) .setISApproximate(false, false, false, false, false).setPrototypeFactions(F_TH) .setProductionFactions(F_TH).setReintroductionFactions(F_DC); return misc; }
public static MiscType createClanBABasicStealth() { MiscType misc = new MiscType(); misc.name = BattleArmor.BASIC_STEALTH_ARMOR; misc.setInternalName(EquipmentType.getArmorTypeName(EquipmentType.T_ARMOR_BA_STEALTH_BASIC, true)); misc.addLookupName("Clan BA Stealth (Basic)"); misc.tonnage = 0; misc.criticals = 3; misc.spreadable = true; misc.hittable = false; misc.flags = misc.flags.or(F_STEALTH).or(F_BA_EQUIPMENT); misc.bv = 0; misc.rulesRefs = "252,TM"; misc.techAdvancement.setTechBase(TECH_BASE_CLAN) .setClanAdvancement(DATE_NONE, DATE_NONE, 3054).setTechRating(RATING_E) .setAvailability(RATING_F, RATING_F, RATING_E, RATING_D); return misc; }
public static MiscType createISBAAdvancedArmor() { MiscType misc = new MiscType(); misc.name = BattleArmor.ADVANCED_ARMOR; misc.setInternalName(EquipmentType.getArmorTypeName(EquipmentType.T_ARMOR_BA_STANDARD_ADVANCED)); misc.addLookupName("IS BA Advanced"); misc.tonnage = 0; misc.criticals = 5; misc.spreadable = true; misc.hittable = false; misc.flags = misc.flags.or(F_BA_EQUIPMENT); misc.bv = 0; misc.rulesRefs = "252,TM"; misc.techAdvancement.setTechBase(TECH_BASE_IS).setISAdvancement(DATE_NONE, 3057, 3060) .setProductionFactions(F_FW).setTechRating(RATING_E) .setAvailability(RATING_X, RATING_X, RATING_F, RATING_E); return misc; }
public static MiscType createClanBAImprovedStealth() { MiscType misc = new MiscType(); misc.name = BattleArmor.IMPROVED_STEALTH_ARMOR; misc.setInternalName(EquipmentType.getArmorTypeName(EquipmentType.T_ARMOR_BA_STEALTH_IMP, true)); misc.addLookupName("Clan BA Stealth (Improved)"); misc.tonnage = 0; misc.criticals = 5; misc.spreadable = true; misc.hittable = false; misc.flags = misc.flags.or(F_STEALTH).or(F_BA_EQUIPMENT); misc.bv = 0; misc.rulesRefs = "252,TM"; misc.techAdvancement.setTechBase(TECH_BASE_CLAN) .setClanAdvancement(DATE_NONE, 3058, 3059) .setProductionFactions(F_CSR).setTechRating(RATING_E) .setAvailability(RATING_X, RATING_X, RATING_F, RATING_E); return misc; }
public static MiscType createISImpactResistant() { MiscType misc = new MiscType(); misc.name = EquipmentType.getArmorTypeName(EquipmentType.T_ARMOR_IMPACT_RESISTANT); misc.setInternalName("IS " + misc.name); misc.tonnage = TONNAGE_VARIABLE; misc.criticals = CRITICALS_VARIABLE; misc.hittable = false; misc.spreadable = true; misc.flags = misc.flags.or(F_IMPACT_RESISTANT).or(F_MECH_EQUIPMENT); misc.omniFixedOnly = true; misc.bv = 0; misc.rulesRefs = "87,IO"; misc.techAdvancement.setTechBase(TECH_BASE_IS).setTechRating(RATING_E) .setAvailability(RATING_X, RATING_X, RATING_X, RATING_E) .setISAdvancement(3092, 3103, DATE_NONE, DATE_NONE, DATE_NONE) .setISApproximate(true, false, false, false, false).setPrototypeFactions(F_LC) .setProductionFactions(F_LC); return misc; }
public static MiscType createISBAImprovedStealth() { MiscType misc = new MiscType(); misc.name = BattleArmor.IMPROVED_STEALTH_ARMOR; misc.setInternalName(EquipmentType.getArmorTypeName(EquipmentType.T_ARMOR_BA_STEALTH_IMP, false)); misc.addLookupName("IS BA Stealth (Improved)"); misc.tonnage = 0; misc.criticals = 5; misc.spreadable = true; misc.hittable = false; misc.flags = misc.flags.or(F_STEALTH).or(F_BA_EQUIPMENT); misc.bv = 0; misc.rulesRefs = "252,TM"; misc.techAdvancement.setTechBase(TECH_BASE_IS).setISAdvancement(3055, 3057, 3059) .setISApproximate(true, false, false, false, false).setPrototypeFactions(F_FW, F_WB) .setProductionFactions(F_FW, F_WB).setTechRating(RATING_E) .setAvailability(RATING_X, RATING_X, RATING_F, RATING_E); return misc; }
public static MiscType createISBAMimeticCamo() { MiscType misc = new MiscType(); misc.name = BattleArmor.MIMETIC_ARMOR; misc.setInternalName(EquipmentType.getArmorTypeName(EquipmentType.T_ARMOR_BA_MIMETIC)); misc.addLookupName("IS BA Mimetic"); misc.tonnage = 0; misc.criticals = 7; misc.spreadable = true; misc.hittable = false; misc.flags = misc.flags.or(F_STEALTH).or(F_VISUAL_CAMO).or(F_BA_EQUIPMENT); misc.bv = 0; misc.rulesRefs = "253,TM"; misc.techAdvancement.setTechBase(TECH_BASE_IS).setISAdvancement(3058, 3061, 3065, DATE_NONE, DATE_NONE) .setISApproximate(true, false, false, false, false).setPrototypeFactions(F_CS, F_WB) .setProductionFactions(F_WB).setTechRating(RATING_E) .setAvailability(RATING_X, RATING_X, RATING_F, RATING_E); return misc; }