Examples of MovePlacementValidator


Examples of com.barrybecker4.game.twoplayer.blockade.board.move.MovePlacementValidator

    /**
     * @param wall check this wall to see if it is blocking this path.
     * @return true if the specified wall is blocking the paths.
     */
    public boolean isBlockedByWall(BlockadeWall wall, BlockadeBoard board) {
       MovePlacementValidator validator = new MovePlacementValidator(board);
       for (BlockadeMove move: moves) {
            if (validator.isMoveBlockedByWall(move, wall)) {
                return true;
            }
       }
       return false;
    }
View Full Code Here

Examples of com.barrybecker4.game.twoplayer.blockade.board.move.MovePlacementValidator

    /**
     * @return true if a wall is blocking this path.
     */
    public boolean isBlocked(BlockadeBoard board) {
       MovePlacementValidator validator = new MovePlacementValidator(board);
       for (BlockadeMove move: moves) {
            if (validator.isMoveBlocked(move)) {
                return true;
            }
       }
       return false;
    }
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.