java.lang.Object
javafx.application.Application
cz.cvut.fel.pjv.MainApp
public class MainApp
extends javafx.application.Application
JavaFX Chess App
-
Nested Class Summary
Nested classes/interfaces inherited from class javafx.application.Application
javafx.application.Application.Parameters -
Field Summary
Fields inherited from class javafx.application.Application
STYLESHEET_CASPIAN, STYLESHEET_MODENA -
Constructor Summary
Constructors Constructor Description MainApp() -
Method Summary
Modifier and Type Method Description static voidaddCountOfCheck()static voidchangeTimer()static intgetCountOfCheck()static GamegetGame()static javafx.scene.ScenegetScene()static javafx.stage.StagegetStage()static java.lang.ThreadgetTime()static TheClockgetTimer()static voidmain(java.lang.String[] args)Void launches game.static voidnewGame()Methode to start new game.static voidsetCountOfCheck(int countOfCheck)static voidsetGame(Game game)static voidsetScene(javafx.scene.Scene scene)static voidsetStage(javafx.stage.Stage stage)static voidsetTime(java.lang.Thread time)static voidsetTimer(TheClock timer)voidstart(javafx.stage.Stage stage)Void launches stage with chessboard.static voidupdateScene()Methode to update scene on stage.Methods inherited from class javafx.application.Application
getHostServices, getParameters, getUserAgentStylesheet, init, launch, launch, notifyPreloader, setUserAgentStylesheet, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
MainApp
public MainApp()
-
-
Method Details
-
getTimer
-
setTimer
-
getTime
public static java.lang.Thread getTime() -
setTime
public static void setTime(java.lang.Thread time) -
getCountOfCheck
public static int getCountOfCheck() -
setCountOfCheck
public static void setCountOfCheck(int countOfCheck) -
addCountOfCheck
public static void addCountOfCheck() -
main
public static void main(java.lang.String[] args)Void launches game.- Parameters:
args-
-
start
public void start(javafx.stage.Stage stage) throws java.io.IOException, java.lang.InterruptedExceptionVoid launches stage with chessboard.- Specified by:
startin classjavafx.application.Application- Parameters:
stage-- Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
getScene
public static javafx.scene.Scene getScene() -
getGame
-
setScene
public static void setScene(javafx.scene.Scene scene) -
setGame
-
getStage
public static javafx.stage.Stage getStage() -
setStage
public static void setStage(javafx.stage.Stage stage) -
updateScene
public static void updateScene() throws java.io.IOExceptionMethode to update scene on stage.- Throws:
java.io.IOException
-
newGame
public static void newGame() throws java.io.IOExceptionMethode to start new game.- Throws:
java.io.IOException
-
changeTimer
public static void changeTimer()
-