EquipmentType.addType(createCLPROSRM1Ammo()); EquipmentType.addType(createCLPROStreakSRM1Ammo());   EquipmentType.addType(createCLPROSRM3Ammo()); EquipmentType.addType(createCLPROStreakSRM3Ammo());   EquipmentType.addType(createCLPROSRM5Ammo()); EquipmentType.addType(createCLPROStreakSRM5Ammo());   EquipmentType.addType(createCLPROLRM1Ammo()); EquipmentType.addType(createCLPROLRM2Ammo()); EquipmentType.addType(createCLPROLRM3Ammo()); EquipmentType.addType(createCLPROLRM4Ammo());  EquipmentType.addType(createCLPROLRM6Ammo()); EquipmentType.addType(createCLPROLRM7Ammo()); EquipmentType.addType(createCLPROLRM8Ammo()); EquipmentType.addType(createCLPROLRM9Ammo());  EquipmentType.addType(createCLPROLRM11Ammo()); EquipmentType.addType(createCLPROLRM12Ammo()); EquipmentType.addType(createCLPROLRM13Ammo()); EquipmentType.addType(createCLPROLRM14Ammo());  EquipmentType.addType(createCLPROLRM16Ammo()); EquipmentType.addType(createCLPROLRM17Ammo()); EquipmentType.addType(createCLPROLRM18Ammo()); EquipmentType.addType(createCLPROLRM19Ammo());
munitions.removeAllElements(); munitions.addElement( new MunitionMutator( "Inferno", 1, M_INFERNO ) ); munitions.addElement( new MunitionMutator( "Fragmentation", 1, M_FRAGMENTATION ) );    baseTypes = srmAmmos.elements(); while ( baseTypes.hasMoreElements() ) { base = (AmmoType) baseTypes.nextElement(); mutators = munitions.elements(); while ( mutators.hasMoreElements() ) { mutator =  (MunitionMutator) mutators.nextElement(); EquipmentType.addType( mutator.createMunitionType( base ) ); } }   munitions.removeAllElements(); munitions.addElement( new MunitionMutator( "Fragmentation", 1, M_FRAGMENTATION ) ); munitions.addElement( new MunitionMutator( "Thunder", 1, M_THUNDER ) ); munitions.addElement( new MunitionMutator( "Thunder-Augmented", 2, M_THUNDER_AUGMENTED ) ); munitions.addElement( new MunitionMutator( "Thunder-Inferno", 2, M_THUNDER_INFERNO ) ); munitions.addElement( new MunitionMutator( "Thunder-Active", 2, M_THUNDER_ACTIVE ) ); munitions.addElement( new MunitionMutator( "Thunder-Vibrabomb", 2, M_THUNDER_VIBRABOMB ) );    baseTypes = lrmAmmos.elements(); while ( baseTypes.hasMoreElements() ) { base = (AmmoType) baseTypes.nextElement(); mutators = munitions.elements(); while ( mutators.hasMoreElements() ) { mutator =  (MunitionMutator) mutators.nextElement(); EquipmentType.addType( mutator.createMunitionType( base ) ); } }   munitions.removeAllElements(); munitions.addElement( new MunitionMutator( "Precision", 2, M_PRECISION ) ); munitions.addElement( new MunitionMutator( "Armor-Piercing", 2, M_ARMOR_PIERCING ) ); munitions.addElement( new MunitionMutator( "Flechette", 1, M_FLECHETTE ) );    baseTypes = acAmmos.elements(); while ( baseTypes.hasMoreElements() ) { base = (AmmoType) baseTypes.nextElement(); mutators = munitions.elements(); while ( mutators.hasMoreElements() ) { mutator =  (MunitionMutator) mutators.nextElement(); EquipmentType.addType( mutator.createMunitionType( base ) ); } }
    public static void initializeTypes() {        // all level 1 ammo        EquipmentType.addType(createISAC2Ammo());        EquipmentType.addType(createISAC5Ammo());        EquipmentType.addType(createISAC10Ammo());        EquipmentType.addType(createISAC20Ammo());        EquipmentType.addType(createISVehicleFlamerAmmo());        EquipmentType.addType(createISMGAmmo());        EquipmentType.addType(createISMGAmmoHalf());        EquipmentType.addType(createISLRM5Ammo());        EquipmentType.addType(createISLRM10Ammo());        EquipmentType.addType(createISLRM15Ammo());        EquipmentType.addType(createISLRM20Ammo());        EquipmentType.addType(createISSRM2Ammo());        EquipmentType.addType(createISSRM4Ammo());        EquipmentType.addType(createISSRM6Ammo());        // Start of Level2 Ammo        EquipmentType.addType(createISSRM2InfernoAmmo());        EquipmentType.addType(createISSRM4InfernoAmmo());        EquipmentType.addType(createISSRM6InfernoAmmo());        EquipmentType.addType(createISSRM2FragAmmo());        EquipmentType.addType(createISSRM4FragAmmo());        EquipmentType.addType(createISSRM6FragAmmo());        EquipmentType.addType(createISLB2XAmmo());        EquipmentType.addType(createISLB5XAmmo());        EquipmentType.addType(createISLB10XAmmo());        EquipmentType.addType(createISLB20XAmmo());        EquipmentType.addType(createISLB2XClusterAmmo());        EquipmentType.addType(createISLB5XClusterAmmo());        EquipmentType.addType(createISLB10XClusterAmmo());        EquipmentType.addType(createISLB20XClusterAmmo());        EquipmentType.addType(createISUltra2Ammo());        EquipmentType.addType(createISUltra5Ammo());        EquipmentType.addType(createISUltra10Ammo());        EquipmentType.addType(createISUltra20Ammo());        EquipmentType.addType(createISRotary2Ammo());        EquipmentType.addType(createISRotary5Ammo());        EquipmentType.addType(createISPrecision2Ammo());        EquipmentType.addType(createISPrecision5Ammo());        EquipmentType.addType(createISPrecision10Ammo());        EquipmentType.addType(createISPrecision20Ammo());        EquipmentType.addType(createISArmorPiercing2Ammo());        EquipmentType.addType(createISArmorPiercing5Ammo());        EquipmentType.addType(createISArmorPiercing10Ammo());        EquipmentType.addType(createISArmorPiercing20Ammo());        EquipmentType.addType(createISFlechette2Ammo());        EquipmentType.addType(createISFlechette5Ammo());        EquipmentType.addType(createISFlechette10Ammo());        EquipmentType.addType(createISFlechette20Ammo());        EquipmentType.addType(createISGaussAmmo());        EquipmentType.addType(createISLTGaussAmmo());        EquipmentType.addType(createISHVGaussAmmo());        EquipmentType.addType(createISStreakSRM2Ammo());        EquipmentType.addType(createISStreakSRM4Ammo());        EquipmentType.addType(createISStreakSRM6Ammo());        EquipmentType.addType(createISMRM10Ammo());        EquipmentType.addType(createISMRM20Ammo());        EquipmentType.addType(createISMRM30Ammo());        EquipmentType.addType(createISMRM40Ammo());        EquipmentType.addType(createISAMSAmmo());        EquipmentType.addType(createISNarcAmmo());        EquipmentType.addType(createISNarcExplosiveAmmo());        EquipmentType.addType(createISFragLRM5Ammo());        EquipmentType.addType(createISFragLRM10Ammo());        EquipmentType.addType(createISFragLRM15Ammo());        EquipmentType.addType(createISFragLRM20Ammo());        EquipmentType.addType(createISThunderLRM5Ammo());        EquipmentType.addType(createISThunderLRM10Ammo());        EquipmentType.addType(createISThunderLRM15Ammo());        EquipmentType.addType(createISThunderLRM20Ammo());        EquipmentType.addType(createISThunderAugmentedLRM5Ammo());        EquipmentType.addType(createISThunderAugmentedLRM10Ammo());        EquipmentType.addType(createISThunderAugmentedLRM15Ammo());        EquipmentType.addType(createISThunderAugmentedLRM20Ammo());        EquipmentType.addType(createISThunderInfernoLRM5Ammo());        EquipmentType.addType(createISThunderInfernoLRM10Ammo());        EquipmentType.addType(createISThunderInfernoLRM15Ammo());        EquipmentType.addType(createISThunderInfernoLRM20Ammo());        EquipmentType.addType(createISThunderActiveLRM5Ammo());        EquipmentType.addType(createISThunderActiveLRM10Ammo());        EquipmentType.addType(createISThunderActiveLRM15Ammo());        EquipmentType.addType(createISThunderActiveLRM20Ammo());        EquipmentType.addType(createISThunderVibraLRM5Ammo());        EquipmentType.addType(createISThunderVibraLRM10Ammo());        EquipmentType.addType(createISThunderVibraLRM15Ammo());        EquipmentType.addType(createISThunderVibraLRM20Ammo());        EquipmentType.addType(createCLLB2XAmmo());        EquipmentType.addType(createCLLB5XAmmo());        EquipmentType.addType(createCLLB10XAmmo());        EquipmentType.addType(createCLLB20XAmmo());        EquipmentType.addType(createCLLB2XClusterAmmo());        EquipmentType.addType(createCLLB5XClusterAmmo());        EquipmentType.addType(createCLLB10XClusterAmmo());        EquipmentType.addType(createCLLB20XClusterAmmo());        EquipmentType.addType(createCLUltra2Ammo());        EquipmentType.addType(createCLUltra5Ammo());        EquipmentType.addType(createCLUltra10Ammo());        EquipmentType.addType(createCLUltra20Ammo());        EquipmentType.addType(createCLGaussAmmo());        EquipmentType.addType(createCLSRM2InfernoAmmo());        EquipmentType.addType(createCLSRM4InfernoAmmo());        EquipmentType.addType(createCLSRM6InfernoAmmo());        EquipmentType.addType(createCLSRM2FragAmmo());        EquipmentType.addType(createCLSRM4FragAmmo());        EquipmentType.addType(createCLSRM6FragAmmo());        EquipmentType.addType(createCLStreakSRM2Ammo());        EquipmentType.addType(createCLStreakSRM4Ammo());        EquipmentType.addType(createCLStreakSRM6Ammo());        EquipmentType.addType(createCLVehicleFlamerAmmo());        EquipmentType.addType(createCLMGAmmo());        EquipmentType.addType(createCLMGAmmoHalf());        EquipmentType.addType(createCLHeavyMGAmmo());        EquipmentType.addType(createCLHeavyMGAmmoHalf());        EquipmentType.addType(createCLLightMGAmmo());        EquipmentType.addType(createCLLightMGAmmoHalf());        EquipmentType.addType(createCLLRM5Ammo());        EquipmentType.addType(createCLLRM10Ammo());        EquipmentType.addType(createCLLRM15Ammo());        EquipmentType.addType(createCLLRM20Ammo());        EquipmentType.addType(createCLSRM2Ammo());        EquipmentType.addType(createCLSRM4Ammo());        EquipmentType.addType(createCLSRM6Ammo());        EquipmentType.addType(createCLAMSAmmo());        EquipmentType.addType(createCLNarcAmmo());        EquipmentType.addType(createCLNarcExplosiveAmmo());        EquipmentType.addType(createCLATM3Ammo());        EquipmentType.addType(createCLATM3ERAmmo());        EquipmentType.addType(createCLATM3HEAmmo());        EquipmentType.addType(createCLATM6Ammo());        EquipmentType.addType(createCLATM6ERAmmo());        EquipmentType.addType(createCLATM6HEAmmo());        EquipmentType.addType(createCLATM9Ammo());        EquipmentType.addType(createCLATM9ERAmmo());        EquipmentType.addType(createCLATM9HEAmmo());        EquipmentType.addType(createCLATM12Ammo());        EquipmentType.addType(createCLATM12ERAmmo());        EquipmentType.addType(createCLATM12HEAmmo());        EquipmentType.addType(createCLFragLRM5Ammo());        EquipmentType.addType(createCLFragLRM10Ammo());        EquipmentType.addType(createCLFragLRM15Ammo());        EquipmentType.addType(createCLFragLRM20Ammo());        EquipmentType.addType(createCLThunderLRM5Ammo());        EquipmentType.addType(createCLThunderLRM10Ammo());        EquipmentType.addType(createCLThunderLRM15Ammo());        EquipmentType.addType(createCLThunderLRM20Ammo());        EquipmentType.addType(createCLThunderAugmentedLRM5Ammo());        EquipmentType.addType(createCLThunderAugmentedLRM10Ammo());        EquipmentType.addType(createCLThunderAugmentedLRM15Ammo());        EquipmentType.addType(createCLThunderAugmentedLRM20Ammo());        EquipmentType.addType(createCLThunderInfernoLRM5Ammo());        EquipmentType.addType(createCLThunderInfernoLRM10Ammo());        EquipmentType.addType(createCLThunderInfernoLRM15Ammo());        EquipmentType.addType(createCLThunderInfernoLRM20Ammo());        EquipmentType.addType(createCLThunderActiveLRM5Ammo());        EquipmentType.addType(createCLThunderActiveLRM10Ammo());        EquipmentType.addType(createCLThunderActiveLRM15Ammo());        EquipmentType.addType(createCLThunderActiveLRM20Ammo());        EquipmentType.addType(createCLThunderVibraLRM5Ammo());        EquipmentType.addType(createCLThunderVibraLRM10Ammo());        EquipmentType.addType(createCLThunderVibraLRM15Ammo());        EquipmentType.addType(createCLThunderVibraLRM20Ammo());        // Start of BattleArmor ammo        EquipmentType.addType( createBASRM2Ammo() );        EquipmentType.addType( createBASRM2OSAmmo() );        EquipmentType.addType( createBAInfernoSRMAmmo() );        EquipmentType.addType( createBAAdvancedSRM2Ammo() );        EquipmentType.addType( createBAMicroBombAmmo() );        EquipmentType.addType( createCLTorpedoLRM5Ammo() );        EquipmentType.addType( createFenrirSRM4Ammo() );        EquipmentType.addType( createBACompactNarcAmmo() );        EquipmentType.addType( createBAMineLauncherAmmo() );        EquipmentType.addType( createBALRM5Ammo() );        //Protomech ammo        EquipmentType.addType(createCLPROHeavyMGAmmo());        EquipmentType.addType(createCLPROMGAmmo());        EquipmentType.addType(createCLPROLightMGAmmo());        EquipmentType.addType(createCLPROSRM1Ammo());        EquipmentType.addType(createCLPROStreakSRM1Ammo());        //EquipmentType.addType(createCLPROSRM2Ammo());        //EquipmentType.addType(createCLPROStreakSRM2Ammo());        EquipmentType.addType(createCLPROSRM3Ammo());        EquipmentType.addType(createCLPROStreakSRM3Ammo());        //EquipmentType.addType(createCLPROSRM4Ammo());        //EquipmentType.addType(createCLPROStreakSRM4Ammo());        EquipmentType.addType(createCLPROSRM5Ammo());        EquipmentType.addType(createCLPROStreakSRM5Ammo());        //EquipmentType.addType(createCLPROSRM6Ammo());        //EquipmentType.addType(createCLPROStreakSRM6Ammo());        EquipmentType.addType(createCLPROLRM1Ammo());        EquipmentType.addType(createCLPROLRM2Ammo());        EquipmentType.addType(createCLPROLRM3Ammo());        EquipmentType.addType(createCLPROLRM4Ammo());        //EquipmentType.addType(createCLPROLRM5Ammo());        EquipmentType.addType(createCLPROLRM6Ammo());        EquipmentType.addType(createCLPROLRM7Ammo());        EquipmentType.addType(createCLPROLRM8Ammo());        EquipmentType.addType(createCLPROLRM9Ammo());        //EquipmentType.addType(createCLPROLRM10Ammo());        EquipmentType.addType(createCLPROLRM11Ammo());        EquipmentType.addType(createCLPROLRM12Ammo());        EquipmentType.addType(createCLPROLRM13Ammo());        EquipmentType.addType(createCLPROLRM14Ammo());        //EquipmentType.addType(createCLPROLRM15Ammo());        EquipmentType.addType(createCLPROLRM16Ammo());        EquipmentType.addType(createCLPROLRM17Ammo());        EquipmentType.addType(createCLPROLRM18Ammo());        EquipmentType.addType(createCLPROLRM19Ammo());        //EquipmentType.addType(createCLPROLRM20Ammo());                // cache types that share a launcher for loadout purposes        for (Enumeration e = EquipmentType.getAllTypes(); e.hasMoreElements(); ) {            EquipmentType et = (EquipmentType)e.nextElement();            if (! (et instanceof AmmoType)) {                continue;            }            AmmoType at = (AmmoType)et;            int nType = at.getAmmoType();            if (m_vaMunitions[nType] == null) {                m_vaMunitions[nType] = new Vector();            }            m_vaMunitions[nType].addElement(at);        }       }