Package megamek.common

Examples of megamek.common.Protomech.locations()


     *            a <code>Protomech</code> unit.
     */
    public void setEntity(Entity entity) {
        Protomech proto = (Protomech) entity;

        int loc = proto.locations();
        if (loc != Protomech.NUM_PMECH_LOCATIONS) {
            armorLabels[5].setVisible(false);
            internalLabels[5].setVisible(false);
            sectionLabels[5].setVisible(false);
        } else {
View Full Code Here


     *            a <code>Protomech</code> unit.
     */
    public void setEntity(Entity entity) {
        Protomech proto = (Protomech) entity;

        int loc = proto.locations();
        if (loc != Protomech.NUM_PMECH_LOCATIONS) {
            armorLabels[5].setVisible(false);
            internalLabels[5].setVisible(false);
            sectionLabels[5].setVisible(false);
        } else {
View Full Code Here

        }

        t.autoSetInternal();

        String[] abbrs = t.getLocationNames();
        for (int loop = 0; loop < t.locations(); loop++) {
            loadEquipment(t, abbrs[loop], loop);
        }
        return t;
    }
View Full Code Here

        value = (int) (proto.calculateBattleValue() / proto.getCrew()
                .getBVSkillMultiplier());
        out.write(value);
        out.write("\" /><hasMainGun value=\"");
        out.write(proto.hasMainGun() ? "true" : "false");
        for (int loc = 0; loc < proto.locations(); loc++) {
            out.write("\" /><pilotDamageTaken loc=\"");
            out.write(loc);
            out.write("\" value=\"");
            value = proto.getPilotDamageTaken(loc);
            out.write(value);
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.