/** * Creates collections for all of the possible <code>WeaponType</code>s and * <code>EquipmentType</code>s. These are used to populate the weapons * and equipment tables. */ private void populateWeaponsAndEquipmentChoices() { Vector<WeaponType> weapons = new Vector<WeaponType>(); Vector<EquipmentType> equipment = new Vector<EquipmentType>(); for (Enumeration<EquipmentType> e = EquipmentType.getAllTypes(); e.hasMoreElements();) { EquipmentType et = e.nextElement(); if ((et instanceof WeaponType)) { weapons.add((WeaponType)et); //Check for C3+Tag and C3 Master Booster if (et.hasFlag(WeaponType.F_C3M) || et.hasFlag(WeaponType.F_C3MBS)) { equipment.add(et); } } if ((et instanceof MiscType)) { equipment.add(et); } } weaponsModel.setData(weapons); equipmentModel.setData(equipment); }
w.write("Type,Tech Base,Rules,Name,Aliases"); w.newLine(); for (Enumeration<EquipmentType> e = EquipmentType.getAllTypes(); e .hasMoreElements();) { EquipmentType type = e.nextElement();
w.write("Type,Name,Tech Base,Rules,Tech Rating,Introduction Date,Extinction Date,Re-Introduction Date,Tonnage,Crits,Cost,BV,Alias"); w.newLine(); for (Enumeration<EquipmentType> e = EquipmentType.getAllTypes(); e .hasMoreElements();) { EquipmentType type = e.nextElement();
Enumeration<EquipmentType> allTypes = EquipmentType.getAllTypes(); int gameYear = clientgui.getClient().getGame().getOptions().intOption(OptionsConstants.ALLOWED_YEAR); SimpleTechLevel legalLevel = SimpleTechLevel.getGameTechLevel(clientgui.getClient().getGame());
private void stockWeaponsAmmoAndEquipment(Campaign c) { for (Enumeration<EquipmentType> e = EquipmentType.getAllTypes(); e.hasMoreElements();) { EquipmentType et = e.nextElement(); if(!et.isHittable() &&
public static String chooseWeaponSpecialization(int type, boolean isClan, int techLvl, int year) { ArrayList<String> candidates = new ArrayList<String>(); for (Enumeration<EquipmentType> e = EquipmentType.getAllTypes(); e.hasMoreElements();) { EquipmentType et = e.nextElement(); if(!(et instanceof WeaponType)) {
optionComp.addValue("None"); //$NON-NLS-1$ for (Enumeration<EquipmentType> i = EquipmentType.getAllTypes(); i.hasMoreElements();) { EquipmentType etype = i.nextElement(); if(etype instanceof WeaponType) {
for (Enumeration<EquipmentType> e = EquipmentType.getAllTypes(); e .hasMoreElements(); ) { EquipmentType et = e.nextElement();