Examples of addEngineSinks()


Examples of megamek.common.Mech.addEngineSinks()

            if (rulesLevel > 2) {
                mech.setTargSysType(getTargSys());
            }

            // add any heat sinks not allocated
            mech.addEngineSinks(heatSinks - mech.heatSinks(),
                    heatSinkType == HeatSinkType.DOUBLE);

            return mech;
        } catch (Exception e) {
            e.printStackTrace();
View Full Code Here

Examples of megamek.common.Mech.addEngineSinks()

                mech.addClanCase();
            }

            // add any heat sinks not allocated
            if ( laserSinks ){
                mech.addEngineSinks(expectedSinks - mech.heatSinks(), "CLLaser Heat Sink");
            } else {
                mech.addEngineSinks(expectedSinks - mech.heatSinks(), dblSinks);
            }

            if (mech.isOmni()) {
View Full Code Here

Examples of megamek.common.Mech.addEngineSinks()

            // add any heat sinks not allocated
            if ( laserSinks ){
                mech.addEngineSinks(expectedSinks - mech.heatSinks(), "CLLaser Heat Sink");
            } else {
                mech.addEngineSinks(expectedSinks - mech.heatSinks(), dblSinks);
            }

            if (mech.isOmni()) {
                if (baseHeatSinks >= 10) {
                    mech.getEngine().setBaseChassisHeatSinks(baseHeatSinks);
View Full Code Here

Examples of megamek.common.Mech.addEngineSinks()

            mech.addGyro();

            mech.setOriginalJumpMP(Integer.parseInt(jumpMP.trim()));

            boolean dblSinks = "Double".equals(heatSinkType.trim());
            mech.addEngineSinks(Integer.parseInt(heatSinks.trim()),
                    dblSinks);

            mech.setStructureType(internalType);

            mech.setArmorType(armorType);
View Full Code Here

Examples of megamek.common.Mech.addEngineSinks()

        mech.setOriginalJumpMP(dataFile.getDataAsInt("jumpingMP")[0]);

        // I keep internal(integral) heat sinks seperate...
        if (!dataFile.exists("heatsinks"))
            throw new EntityLoadingException("Could not find block.");
        mech.addEngineSinks(dataFile.getDataAsInt("heatsinks")[0], false);

        if (dataFile.exists("internal_type"))
            mech.setStructureType(dataFile.getDataAsInt("internal_type")[0]);

        if (dataFile.exists("armor_type"))
View Full Code Here

Examples of megamek.common.Mech.addEngineSinks()

            if (mech.isClan()) {
                mech.addClanCase();
            }

            // add any heat sinks not allocated
            mech.addEngineSinks(expectedSinks - mech.heatSinks(), dblSinks);

            // set targeting system
            if (targSysStr.startsWith("Long-Range")) {
                mech.setTargSysType(MiscType.T_TARGSYS_LONGRANGE);
            } else if (targSysStr.startsWith("Short-Range")) {
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.