java.lang.Object
cz.cvut.fel.pjv.ChessBoardController
public class ChessBoardController
extends java.lang.Object
Class to representation game controller.
-
Constructor Summary
Constructors Constructor Description ChessBoardController() -
Method Summary
Modifier and Type Method Description voidinitialize()Initialize windows with the ChessvoidloadPGNGame(javafx.event.ActionEvent actionEvent)voidsavePGNGame(javafx.event.ActionEvent actionEvent)voidsetChessBoard()Methode sets icons of pieces to the chessboard.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ChessBoardController
public ChessBoardController()
-
-
Method Details
-
initialize
public void initialize() throws java.lang.ExceptionInitialize windows with the Chess- Throws:
java.lang.Exception
-
setChessBoard
public void setChessBoard() throws java.lang.ExceptionMethode sets icons of pieces to the chessboard.- Throws:
java.lang.Exception
-
loadPGNGame
public void loadPGNGame(javafx.event.ActionEvent actionEvent) throws java.io.IOException, java.text.ParseException- Throws:
java.io.IOExceptionjava.text.ParseException
-
savePGNGame
public void savePGNGame(javafx.event.ActionEvent actionEvent) throws java.io.IOException- Throws:
java.io.IOException
-