Package continuity.View

Examples of continuity.View.RoomView


        int nowx=0;
        while(r!=null) {
            Room now=r;
            int nowy=0;
            while(now!=null) {
                RoomView tmp=now.createRoomView();
                //ha ez az empty, elmentjük a koordinátáit
                if(now.getBorderNode(Direction.Up, 0)==null &&
                    now.getBorderNode(Direction.Down, 0)==null &&
                    now.getBorderNode(Direction.Right, 0)==null &&
                    now.getBorderNode(Direction.Left, 0)==null) {
View Full Code Here


                    getBorderNode(Direction.Left, 0)==null) {
            NodeView[][] emptyNodes = new NodeView[borderNodes.get(Direction.Left.toInt()).size()][];
            for (int i = 0; i < emptyNodes.length; i++) {
                emptyNodes[i] = new NodeView[borderNodes.get(Direction.Up.toInt()).size()];
            }
            return new RoomView(emptyNodes);
        }
        for(int i=0; i< height;i++) {
            for(int j=0;j<width;j++) {
                nodeViews[i][j]=nodes.get(i*width+j).createNodeView();
            }
        }
        return new RoomView(nodeViews);
    }
View Full Code Here

TOP

Related Classes of continuity.View.RoomView

Copyright © 2018 www.massapicom. 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.