Examples of TiledShape


Examples of squidpony.squidgrid.shape.TiledShape

            image = ImageIO.read(new File("./assets/" + name));
        } catch (IOException ex) {
            Logger.getLogger(MapGenerationTester.class.getName()).log(Level.SEVERE, null, ex);
        }

        return new TiledShape(image);
    }
View Full Code Here

Examples of squidpony.squidgrid.shape.TiledShape

    }

    public void testHerringbone() {
        ArrayList<TiledShape> verts = new ArrayList<>();
        ArrayList<TiledShape> horzs = new ArrayList<>();
        verts.add(new TiledShape(loadShapeImage("tiles/herringbone small vertical test.png")));
        horzs.add(new TiledShape(loadShapeImage("tiles/herringbone small horizontal test.png")));
        System.out.println(ShapeGenerator.buildHerringboneShape(400, 100, verts, horzs));
    }
View Full Code Here

Examples of squidpony.squidgrid.shape.TiledShape

        System.out.println(ShapeGenerator.buildHerringboneShape(400, 100, verts, horzs));
    }

    public void testStackBond() {
        ArrayList<TiledShape> tiles = new ArrayList<>();
        tiles.add(new TiledShape(loadShapeImage("tiles/herringbone horizontal test.png")));
        System.out.println(ShapeGenerator.buildStackBond(400, 100, tiles));
    }
View Full Code Here

Examples of squidpony.squidgrid.shape.TiledShape

        System.out.println(ShapeGenerator.buildStackBond(400, 100, tiles));
    }

    public void testBrick() {
        ArrayList<TiledShape> tiles = new ArrayList<>();
        tiles.add(new TiledShape(loadShapeImage("tiles/brick test.png")));
        System.out.println(ShapeGenerator.buildBrick(400, 100, tiles, 3));
    }
View Full Code Here

Examples of squidpony.squidgrid.shape.TiledShape

    public void testRunningBond() {
        ArrayList<TiledShape> verts = new ArrayList<>();
        ArrayList<TiledShape> horzs = new ArrayList<>();

        verts.add(new TiledShape(loadShapeImage("tiles/herringbone vertical test.png")));
        horzs.add(new TiledShape(loadShapeImage("tiles/herringbone horizontal test.png")));
        System.out.println(ShapeGenerator.buildRunningBond(100, 100, verts, horzs));
        System.out.println("");

        verts = new ArrayList<>();
        horzs = new ArrayList<>();
        verts.add(new TiledShape(loadShapeImage("tiles/herringbone small vertical test.png")));
        horzs.add(new TiledShape(loadShapeImage("tiles/herringbone small horizontal test.png")));
        System.out.println(ShapeGenerator.buildRunningBond(100, 100, verts, horzs));
        System.out.println("");

        verts = new ArrayList<>();
        horzs = new ArrayList<>();
        TiledShape shape = new TiledShape(loadShapeImage("tiles/brick test.png"));
        shape.rotateClockwise();
        verts.add(shape);
        horzs.add(new TiledShape(loadShapeImage("tiles/brick test.png")));
        System.out.println(ShapeGenerator.buildRunningBond(100, 100, verts, horzs));
    }
View Full Code Here

Examples of squidpony.squidgrid.shape.TiledShape

    }

    public void testBasketWeave() {
        ArrayList<TiledShape> verts = new ArrayList<>();
        ArrayList<TiledShape> horzs = new ArrayList<>();
        TiledShape shape = new TiledShape(loadShapeImage("tiles/brick test.png"));
        shape.rotateClockwise();
        verts.add(shape);
        horzs.add(new TiledShape(loadShapeImage("tiles/brick test.png")));
        System.out.println(ShapeGenerator.buildBasketWeave(100, 100, verts, horzs, true));
        System.out.println("");
        System.out.println(ShapeGenerator.buildBasketWeave(100, 100, verts, horzs, false));
    }
View Full Code Here

Examples of squidpony.squidgrid.shape.TiledShape

    }

    public void testWindmill() {
        ArrayList<TiledShape> verts = new ArrayList<>();
        ArrayList<TiledShape> horzs = new ArrayList<>();
        TiledShape shape = new TiledShape(loadShapeImage("tiles/brick test.png"));
        shape.rotateClockwise();
        verts.add(shape);
        horzs.add(new TiledShape(loadShapeImage("tiles/brick test.png")));
        showColors(ShapeGenerator.buildWindmill(100, 100, verts, horzs, verts));
    }
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.