Examples of locations()


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

Examples of megamek.common.Protomech.locations()

        }

        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

Examples of megamek.common.Protomech.locations()

        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

Examples of org.codemap.MapInstance.locations()

            model.setClean();
           
            MapInstance value = map.mapInstance.getValue();
            // map not yet available
            if (value == null) return;
            Iterable<Location> locations = value.locations();
            createGraphs(locations);
            createRenderers();
        }
       
        gc.setAlpha(255);
View Full Code Here

Examples of org.codemap.MapInstance.locations()

       
        String makeRed = "MapPerProject";
       
        CodemapColors colors = new CodemapColors();
        colors.setColor(makeRed, new MColor(255, 0, 0));
        Iterable<Location> locations = mapInstance.locations();
        ColorBrewer colorBrewer = new ColorBrewer();
        for (Location location : locations) {
            MColor color = colorBrewer.forPackage(location.getDocument());
            colors.setColor(location.getDocument(), color);
        }
View Full Code Here

Examples of org.codemap.MapInstance.locations()

        int minX = Math.min(dragStart.x, dragStop.x);
        int minY = Math.min(dragStart.y, dragStop.y);
        int maxX = Math.max(dragStart.x, dragStop.x);
        int maxY = Math.max(dragStart.y, dragStop.y);   
        Collection<String> ids = new ArrayList<String>();
        for (Location each : mapInstance.locations()) {
            if (each.px < maxX && each.px > minX && each.py < maxY && each.py > minY) {     
                ids.add(each.getDocument());
            }
        }
        getSelection(map).replaceAll(ids);
View Full Code Here

Examples of org.elasticsearch.index.translog.fs.FsTranslog.locations()

            String translogName = "translog-" + translogId;
            String recoverTranslogName = translogName + ".recovering";


            File recoveringTranslogFile = null;
            for (File translogLocation : translog.locations()) {
                File tmpRecoveringFile = new File(translogLocation, recoverTranslogName);
                if (!tmpRecoveringFile.exists()) {
                    File tmpTranslogFile = new File(translogLocation, translogName);
                    if (tmpTranslogFile.exists()) {
                        for (int i = 0; i < RECOVERY_TRANSLOG_RENAME_RETRIES; i++) {
View Full Code Here

Examples of org.speakright.core.SRInstance.locations()

  {
    MyFlow flow = new MyFlow("a");
    TrailWrapper wrap1 = new TrailWrapper(flow);
   
    SRInstance run = new SRInstance();
    run.locations().setProjectDir(dir);
    assertEquals("", false, run.isFailed());
    assertEquals("", false, run.isFinished());
    assertEquals("", false, run.isStarted());
   
    boolean b = run.start(wrap1);
View Full Code Here

Examples of org.speakright.core.SRInstance.locations()

  {
    MyFlow flow = new MyFlow("a");
    TrailWrapper wrap1 = new TrailWrapper(flow);
   
    SRInstance run = new SRInstance();   
    run.locations().setProjectDir(dir);
    boolean b = run.start(wrap1);
    Assert.assertTrue(b);
   
    run.proceed(new SRResults());
   
View Full Code Here

Examples of org.springframework.test.context.ContextConfiguration.locations()

    private String[] extractLocationFromAnnotation(Class<?> clazz) {
        ContextConfiguration contextConfiguration = InternalUtils.findAnnotation(clazz.getAnnotations(),
                ContextConfiguration.class);
        String[] locations = null;
        if (contextConfiguration != null) {
            locations = contextConfiguration.locations();
        }

        return locations;
    }
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.