w.write(Double.toString(unit.getTons())); w.write(","); if (unit.isClan()) { w.write("Clan,"); } else {
Predicate<MechSummary> test = ms -> (!campaign.getCampaignOptions().limitByYear() || targetYear > ms.getYear()) && (!ms.isClan() || campaign.getCampaignOptions().allowClanPurchases()) && (ms.isClan() || campaign.getCampaignOptions().allowISPurchases()); MechSummary ms = ug .generate(((FactionChoice) factionPicker.getSelectedItem()).id,
if (mech.isClan()){ isString = "Clan "; } else {
private void stockBattleArmorSuits(Campaign c) { //this is just a test for(MechSummary summary : MechSummaryCache.getInstance().getAllMechs()) { if(!summary.getUnitType().equals("BattleArmor")) { continue; } //FIXME: I can't pull entity movement mode and quad shape off of mechsummary //try loading the full entity, but this might take too long if(null != summary) { Entity newEntity = null; try { newEntity = new MechFileParser(summary.getSourceFile(), summary.getEntryName()).getEntity(); } catch (EntityLoadingException e) { e.printStackTrace(); } if(null != newEntity) { BattleArmorSuit ba = new BattleArmorSuit(summary.getChassis(), summary.getModel(), (int)summary.getTons(), 1, summary.getWeightClass(), summary.getWalkMp(), summary.getJumpMp(), newEntity.entityIsQuad(), summary.isClan(), newEntity.getMovementMode(), c); parts.add(ba); } } } }
clan = ms.isClan(); if (megamek.common.Engine.getEngineTypeByString(ms.getEngineName()) == megamek.common.Engine.XL_ENGINE || ms.getArmorType().contains(EquipmentType.T_ARMOR_FERRO_FIBROUS)
|| ms.getWeightClass() < megamek.common.EntityWeightClass.WEIGHT_ASSAULT)) { p.setOriginalUnitWeight(ms.getWeightClass()); if (ms.isClan()) { p.setOriginalUnitTech(2); } else if (ms.getYear() > 3050) {