Examples of initializeArmor()


Examples of megamek.common.SupportVTOL.initializeArmor()

        // add the body to the armor array
        int[] fullArmor = new int[armor.length + 1];
        fullArmor[0] = 0;
        System.arraycopy(armor, 0, fullArmor, 1, armor.length);
        for (int x = 0; x < fullArmor.length; x++) {
            t.initializeArmor(fullArmor[x], x);
        }

        t.autoSetInternal();

        loadEquipment(t, "Front", Tank.LOC_FRONT);
View Full Code Here

Examples of megamek.common.Tank.initializeArmor()

                    throw new EntityLoadingException(
                            "Unsupported tech level: " + rulesLevel);
                }
            }

            vehicle.initializeArmor(frontArmor, Tank.LOC_FRONT);
            vehicle.initializeArmor(leftArmor, Tank.LOC_LEFT);
            vehicle.initializeArmor(rightArmor, Tank.LOC_RIGHT);
            vehicle.initializeArmor(rearArmor, Tank.LOC_REAR);
            if (vehicle instanceof VTOL) {
                vehicle.initializeArmor(turretArmor, VTOL.LOC_ROTOR);
View Full Code Here

Examples of megamek.common.VTOL.initializeArmor()

        // add the body to the armor array
        int[] fullArmor = new int[armor.length + 1];
        fullArmor[0] = 0;
        System.arraycopy(armor, 0, fullArmor, 1, armor.length);
        for (int x = 0; x < fullArmor.length; x++) {
            t.initializeArmor(fullArmor[x], x);
        }

        t.autoSetInternal();

        loadEquipment(t, "Front", Tank.LOC_FRONT);
View Full Code Here

Examples of megamek.common.Warship.initializeArmor()

        if (armor.length != 6) {
            throw new EntityLoadingException("Incorrect armor array length");
        }

        a.initializeArmor(armor[BLKWarshipFile.NOSE], Warship.LOC_NOSE);
        a.initializeArmor(armor[BLKWarshipFile.FLS], Warship.LOC_FLS);
        a.initializeArmor(armor[BLKWarshipFile.FRS], Warship.LOC_FRS);
        a.initializeArmor(armor[BLKWarshipFile.ALS], Warship.LOC_ALS);
        a.initializeArmor(armor[BLKWarshipFile.ARS], Warship.LOC_ARS);
        a.initializeArmor(armor[BLKWarshipFile.AFT], Warship.LOC_AFT);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.