Examples of surface()


Examples of megamek.common.IHex.surface()

            }
            if (hex.containsTerrain(Terrains.WATER)) {
                scores[i] += hex.terrainLevel(Terrains.WATER);
            }
            if (curHex.surface() - hex.surface() >= 2) {
                scores[i] += 2 * (curHex.surface() - hex.surface());
            }
        }

        int bestScore = 99999;
        int best = 0;
View Full Code Here

Examples of megamek.common.IHex.surface()

        IHex shex = game.getBoard().getHex(ae.getPosition());
        IHex thex = game.getBoard().getHex(t.getPosition());
        Point3d source =  BoardModel.getHexLocation(ae.getPosition(), shex.surface()+ae.height());
        source.z += BoardModel.HEX_HEIGHT/2;
        Point3d target = BoardModel.getHexLocation(t.getPosition(), thex.surface()+t.getHeight());
        target.z += BoardModel.HEX_HEIGHT/2;
       
        setCapability(ALLOW_DETACH);
        setUserData(aa);
View Full Code Here

Examples of net.algart.math.patterns.UniformGridPattern.surface()

        points = p.upperSurface(0).points();
        System.out.println(points.size() + " right points:");
        if (points.size() < 1000) {
            System.out.println(new TreeSet<Point>(points));
        }
        points = p.surface().points();
        System.out.println(points.size() + " boundary:");
        if (points.size() < 1000) {
            System.out.println(new TreeSet<Point>(points));
        }
        System.out.println("Carcass:");
View Full Code Here

Examples of playn.core.SurfaceImage.surface()

        for (Atlas atlas : atlases) {
            Node root = atlas.root;
            final SurfaceImage atlasImage = graphics().createSurface(root.width, root.height);
            root.visitItems(new Slot<Node>() { @Override public void onEmit (Node node) {
                // Draw the item to the atlas
                node.item.draw(atlasImage.surface(), node.x, node.y);

                // Record its region
                packed.put(node.item.id, atlasImage.subImage(
                    node.x, node.y, node.width, node.height));
            }});
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.