public String getShortName() { return "(" + EquipmentType.getStructureTypeName(structureType) + ")"; }
this.name += " (" + EquipmentType.getStructureTypeName(structureType) + ")";
this.name += " (" + EquipmentType.getStructureTypeName(structureType, isClan()) + ")"; } else if(structureType != EquipmentType.T_STRUCTURE_STANDARD) { this.name += " (" + EquipmentType.getStructureTypeName(structureType) + ")";
public static TechAdvancement getStructureTechAdvancement(int at, boolean clan) { if (at == T_STRUCTURE_STANDARD) { return TA_STANDARD_STRUCTURE; } String structureName = EquipmentType.getStructureTypeName(at, clan); EquipmentType structure = EquipmentType.get(structureName); if (structure != null) { return structure.getTechAdvancement(); } return TA_NONE; }
public static MiscType createIndustrialStructure() { MiscType misc = new MiscType(); misc.name = EquipmentType.getStructureTypeName(T_STRUCTURE_INDUSTRIAL); misc.setInternalName(EquipmentType.getStructureTypeName(T_STRUCTURE_INDUSTRIAL)); misc.addLookupName(EquipmentType.getStructureTypeName(T_STRUCTURE_INDUSTRIAL, false)); misc.addLookupName(EquipmentType.getStructureTypeName(T_STRUCTURE_INDUSTRIAL, true)); misc.addLookupName("IS Industrial Structure"); misc.addLookupName("Clan Industrial Structure"); misc.tonnage = TONNAGE_VARIABLE; misc.criticals = 0; misc.bv = 0; misc.industrial = true; misc.flags = misc.flags.or(F_INDUSTRIAL_STRUCTURE); misc.rulesRefs = "224,TM"; misc.techAdvancement.setTechBase(TECH_BASE_ALL).setTechRating(RATING_C) .setAvailability(RATING_C, RATING_C, RATING_C, RATING_C) .setAdvancement(2300, 2350, 2490, DATE_NONE, DATE_NONE) .setPrototypeFactions(F_TA).setProductionFactions(F_TH); return misc; }
.getStructureTypeName(EquipmentType.T_STRUCTURE_STANDARD));
.getStructureTypeName(EquipmentType.T_STRUCTURE_STANDARD));
public static MiscType createClanEndoComposite() { MiscType misc = new MiscType(); misc.name = EquipmentType.getStructureTypeName(T_STRUCTURE_ENDO_COMPOSITE); misc.setInternalName(EquipmentType.getStructureTypeName(T_STRUCTURE_ENDO_COMPOSITE, true)); misc.addLookupName("Clan Endo-Composite"); misc.tonnage = TONNAGE_VARIABLE; misc.criticals = 4; misc.hittable = false; misc.spreadable = true; misc.flags = misc.flags.or(F_ENDO_COMPOSITE); misc.omniFixedOnly = true; misc.bv = 0; misc.rulesRefs = "342,TO"; misc.techAdvancement.setTechBase(TECH_BASE_CLAN).setTechRating(RATING_E) .setAvailability(RATING_X, RATING_X, RATING_F, RATING_E) .setClanAdvancement(3073).setPrototypeFactions(F_CWX) .setStaticTechLevel(SimpleTechLevel.EXPERIMENTAL); return misc; }
+ EquipmentType.getStructureTypeName(entity .getStructureType())));
public static MiscType createISCompositeStructure() { MiscType misc = new MiscType(); misc.name = EquipmentType.getStructureTypeName(T_STRUCTURE_COMPOSITE); misc.setInternalName(EquipmentType.getStructureTypeName(T_STRUCTURE_COMPOSITE, false)); misc.addLookupName("Composite"); misc.tonnage = TONNAGE_VARIABLE; misc.criticals = 0; misc.hittable = false; misc.bv = 0; misc.flags = misc.flags.or(F_COMPOSITE); misc.omniFixedOnly = true; misc.rulesRefs = "342,TO"; misc.techAdvancement.setTechBase(TECH_BASE_IS).setTechRating(RATING_E) .setAvailability(RATING_X, RATING_X, RATING_E, RATING_D) .setISAdvancement(3061, 3082).setPrototypeFactions(F_FS) .setProductionFactions(F_FS).setStaticTechLevel(SimpleTechLevel.EXPERIMENTAL); return misc; }
public static MiscType createStandard() { // This is not really a single piece of equipment, it is used to // identify "standard" internal structure, armor, whatever. MiscType misc = new MiscType(); misc.name = EquipmentType.getStructureTypeName(T_STRUCTURE_STANDARD); misc.setInternalName(EquipmentType.getStructureTypeName(T_STRUCTURE_STANDARD)); misc.addLookupName(EquipmentType.getStructureTypeName(T_STRUCTURE_STANDARD, false)); misc.addLookupName(EquipmentType.getStructureTypeName(T_STRUCTURE_STANDARD, true)); misc.addLookupName(EquipmentType.getArmorTypeName(T_ARMOR_STANDARD, false)); misc.addLookupName(EquipmentType.getArmorTypeName(T_ARMOR_STANDARD, true)); misc.addLookupName("Regular"); misc.addLookupName("IS Standard Armor"); misc.addLookupName("Clan Standard Armor"); misc.flags = misc.flags.or(F_MECH_EQUIPMENT).or(F_TANK_EQUIPMENT) .or(F_VTOL_EQUIPMENT).or(F_FIGHTER_EQUIPMENT).or(F_PROTOMECH_EQUIPMENT); misc.criticals = 0; misc.techAdvancement.setTechBase(TECH_BASE_ALL); misc.techAdvancement.setAdvancement(DATE_NONE, DATE_NONE, DATE_PS); misc.techAdvancement.setIntroLevel(true); misc.techAdvancement.setTechRating(RATING_A); misc.techAdvancement.setAvailability(new int[] { RATING_A, RATING_A, RATING_A, RATING_A }); return misc; }
public static MiscType createISEndoComposite() { MiscType misc = new MiscType(); misc.name = EquipmentType.getStructureTypeName(T_STRUCTURE_ENDO_COMPOSITE); misc.setInternalName(EquipmentType.getStructureTypeName(T_STRUCTURE_ENDO_COMPOSITE, false)); misc.addLookupName("IS Endo-Composite"); misc.tonnage = TONNAGE_VARIABLE; misc.criticals = CRITICALS_VARIABLE; misc.hittable = false; misc.spreadable = true; misc.flags = misc.flags.or(F_ENDO_COMPOSITE); misc.omniFixedOnly = true; misc.bv = 0; misc.rulesRefs = "342,TO"; misc.techAdvancement.setTechBase(TECH_BASE_IS).setTechRating(RATING_E) .setAvailability(RATING_X, RATING_X, RATING_F, RATING_E) .setISAdvancement(3067, 3085).setISApproximate(false, true).setPrototypeFactions(F_LC) .setProductionFactions(F_LC).setStaticTechLevel(SimpleTechLevel.EXPERIMENTAL); return misc; }
public static MiscType createISEndoSteelPrototype() { MiscType misc = new MiscType(); misc.name = EquipmentType.getStructureTypeName(T_STRUCTURE_ENDO_PROTOTYPE); misc.setInternalName(EquipmentType.getStructureTypeName(T_STRUCTURE_ENDO_PROTOTYPE, false)); misc.addLookupName("IS Endo Steel Prototype"); misc.addLookupName("IS Endo-Steel Prototype"); misc.tonnage = TONNAGE_VARIABLE; misc.criticals = 16; misc.hittable = false; misc.spreadable = true; misc.flags = misc.flags.or(F_ENDO_STEEL_PROTO); misc.omniFixedOnly = true; misc.bv = 0; misc.rulesRefs = "71,IO"; misc.techAdvancement.setTechBase(TECH_BASE_IS).setIntroLevel(false).setUnofficial(false).setTechRating(RATING_E) .setAvailability(RATING_F, RATING_F, RATING_X, RATING_X) .setISAdvancement(2471, DATE_NONE, DATE_NONE, 2487, 3035) .setISApproximate(true, false, false, true, true).setPrototypeFactions(F_TH) .setReintroductionFactions(F_DC); return misc; }
public static MiscType createCLEndoSteel() { MiscType misc = new MiscType(); misc.name = EquipmentType.getStructureTypeName(T_STRUCTURE_ENDO_STEEL); misc.setInternalName(EquipmentType.getStructureTypeName(T_STRUCTURE_ENDO_STEEL, true)); misc.addLookupName("Clan Endo-Steel"); misc.addLookupName("Clan EndoSteel"); misc.tonnage = TONNAGE_VARIABLE; misc.criticals = 7; misc.hittable = false; misc.spreadable = true; misc.flags = misc.flags.or(F_ENDO_STEEL); misc.omniFixedOnly = true; misc.bv = 0; misc.rulesRefs = "224,TM"; misc.techAdvancement.setTechBase(TECH_BASE_CLAN).setIntroLevel(false).setUnofficial(false) .setTechRating(RATING_F).setAvailability(RATING_X, RATING_E, RATING_D, RATING_D) .setClanAdvancement(2825, 2827, 2830, DATE_NONE, DATE_NONE) .setClanApproximate(true, false, false, false, false).setPrototypeFactions(F_CIH) .setProductionFactions(F_CIH); return misc; }
public static MiscType createISEndoSteel() { MiscType misc = new MiscType(); misc.name = EquipmentType.getStructureTypeName(T_STRUCTURE_ENDO_STEEL); misc.setInternalName(EquipmentType.getStructureTypeName(T_STRUCTURE_ENDO_STEEL, false)); misc.addLookupName("IS EndoSteel"); misc.addLookupName("IS Endo-Steel"); misc.tonnage = TONNAGE_VARIABLE; misc.criticals = CRITICALS_VARIABLE; misc.hittable = false; misc.spreadable = true; misc.flags = misc.flags.or(F_ENDO_STEEL); misc.omniFixedOnly = true; misc.bv = 0; misc.rulesRefs = "224,TM"; misc.techAdvancement.setTechBase(TECH_BASE_IS).setIntroLevel(false).setUnofficial(false).setTechRating(RATING_E) .setAvailability(RATING_D, RATING_F, RATING_E, RATING_D).setISAdvancement(2480, 2487, 3040, 2850, 3035) .setISApproximate(true, false, false, false, false).setPrototypeFactions(F_TH) .setProductionFactions(F_TH).setReintroductionFactions(F_DC); return misc; }
public static MiscType createReinforcedStructure() { MiscType misc = new MiscType(); misc.name = EquipmentType.getStructureTypeName(T_STRUCTURE_REINFORCED); misc.setInternalName(EquipmentType.getStructureTypeName(T_STRUCTURE_REINFORCED)); misc.addLookupName("IS Reinforced"); misc.addLookupName("Clan Reinforced"); misc.tonnage = TONNAGE_VARIABLE; misc.criticals = 0; misc.hittable = false; misc.spreadable = true; misc.bv = 0; misc.flags = misc.flags.or(F_REINFORCED); misc.omniFixedOnly = true; misc.rulesRefs = "342,TO"; misc.techAdvancement.setTechBase(TECH_BASE_ALL).setTechRating(RATING_E) .setAvailability(RATING_X, RATING_X, RATING_E, RATING_D) .setISAdvancement(3057, 3084).setISApproximate(false, true, false) .setClanAdvancement(3065, 3084).setClanApproximate(false, true, false) .setPrototypeFactions(F_CS, F_CGB).setProductionFactions(F_CGB) .setStaticTechLevel(SimpleTechLevel.EXPERIMENTAL); return misc; }
.equals("Clan " + EquipmentType .getStructureTypeName(EquipmentType.T_STRUCTURE_ENDO_STEEL))) { return 7; .equals("Clan " + EquipmentType .getStructureTypeName(EquipmentType.T_STRUCTURE_ENDO_COMPOSITE))) { return 4;
private String formatChassisDesc() { String chassisDesc = EquipmentType.getStructureTypeName(mech.getStructureType()); if (mech.isIndustrial()) { chassisDesc += Messages.getString("TROView.chassisIndustrial"); } if (mech.isSuperHeavy()) { chassisDesc += Messages.getString("TROView.chassisSuperheavy"); } if (mech.hasETypeFlag(Entity.ETYPE_QUADVEE)) { chassisDesc += Messages.getString("TROView.chassisQuadVee"); } else if (mech.hasETypeFlag(Entity.ETYPE_QUAD_MECH)) { chassisDesc += Messages.getString("TROView.chassisQuad"); } else if (mech.hasETypeFlag(Entity.ETYPE_TRIPOD_MECH)) { chassisDesc += Messages.getString("TROView.chassisTripod"); } else if (mech.hasETypeFlag(Entity.ETYPE_LAND_AIR_MECH)) { chassisDesc += Messages.getString("TROView.chassisLAM"); } else { chassisDesc += Messages.getString("TROView.chassisBiped"); } return chassisDesc; }
if (isMech) { internal += Messages.getString("MechView." + EquipmentType.getStructureTypeName(entity .getStructureType()));
final TestMech testMech = new TestMech(mech, verifier.mechOption, null); setModelData("structureName", mech.getStructureType() == EquipmentType.T_STRUCTURE_STANDARD ? "" : EquipmentType.getStructureTypeName(mech.getStructureType())); setModelData("isMass", NumberFormat.getInstance().format(testMech.getWeightStructure())); setModelData("engineName", stripNotes(mech.getEngine().getEngineName()));