Package com.barrybecker4.game.common.persistence

Examples of com.barrybecker4.game.common.persistence.GameExporter.saveToFile()


     */
    public void saveGame(File file, AssertionError ae) {
        String fPath = file.getAbsolutePath();
        fPath = SgfFileFilter.addExtIfNeeded(fPath, SgfFileFilter.SGF_EXTENSION);
        GameExporter exporter = controller_.getExporter();
        exporter.saveToFile(fPath, ae);
    }

    /**
     *  Animate the last move so the player does not lose orientation.
     *  By default this just redraws the board, but for games with complex moves,
View Full Code Here


        if ( file != null && state == JFileChooser.APPROVE_OPTION ) {
            // if it does not have the .sgf extension already then add it
            String fPath = file.getAbsolutePath();
            fPath = SgfFileFilter.addExtIfNeeded(fPath, SgfFileFilter.SGF_EXTENSION);
            GameExporter exporter = controller_.getExporter();
            exporter.saveToFile(fPath, ae);
        }
    }

    /**
     * Cause the board UI to draw itself based on the current state of the game.
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.