Package org.kaminoite.ranka.kido.ipad.tools.go.specification

Examples of org.kaminoite.ranka.kido.ipad.tools.go.specification.PointList


        @param type The type of the markup from Node.MARK_TYPES. */
    public void addMarked(GoPoint point, MarkType type)
    {
        assert point != null;
        Map<MarkType,PointList> marked = createMarked();
        PointList pointList = (PointList)marked.get(type);
        if (pointList == null)
        {
            pointList = new PointList(1);
            pointList.add(point);
            marked.put(type, pointList);
        }
        else if (! pointList.contains(point))
            pointList.add(point);
    }
View Full Code Here


        @param type Type of the markup from Node.MARK_TYPES. */
    public void removeMarked(GoPoint point, MarkType type)
    {
        assert point != null;
        Map<MarkType,PointList> marked = createMarked();
        PointList pointList = (PointList)marked.get(type);
        if (pointList != null)
            pointList.remove(point);
    }
View Full Code Here

        }
    }

    private void printPosition(ConstBoard board)
    {
        PointList black = new PointList();
        PointList white = new PointList();
        for (GoPoint p : board)
        {
            GoColor c = board.getColor(p);
            if (c == BLACK)
                black.add(p);
            else if (c == WHITE)
                white.add(p);
        }
        printSetup(black, white);
        printNewLine();
        printToPlay(board.getToMove());
    }
View Full Code Here

TOP

Related Classes of org.kaminoite.ranka.kido.ipad.tools.go.specification.PointList

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.