Module org.example

Class MainApp

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 void addCountOfCheck()  
    static void changeTimer()  
    static int getCountOfCheck()  
    static Game getGame()  
    static javafx.scene.Scene getScene()  
    static javafx.stage.Stage getStage()  
    static java.lang.Thread getTime()  
    static TheClock getTimer()  
    static void main​(java.lang.String[] args)
    Void launches game.
    static void newGame()
    Methode to start new game.
    static void setCountOfCheck​(int countOfCheck)  
    static void setGame​(Game game)  
    static void setScene​(javafx.scene.Scene scene)  
    static void setStage​(javafx.stage.Stage stage)  
    static void setTime​(java.lang.Thread time)  
    static void setTimer​(TheClock timer)  
    void start​(javafx.stage.Stage stage)
    Void launches stage with chessboard.
    static void updateScene()
    Methode to update scene on stage.

    Methods inherited from class javafx.application.Application

    getHostServices, getParameters, getUserAgentStylesheet, init, launch, launch, notifyPreloader, setUserAgentStylesheet, stop

    Methods 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

      public static TheClock getTimer()
    • setTimer

      public static void setTimer​(TheClock timer)
    • 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.InterruptedException
      Void launches stage with chessboard.
      Specified by:
      start in class javafx.application.Application
      Parameters:
      stage -
      Throws:
      java.io.IOException
      java.lang.InterruptedException
    • getScene

      public static javafx.scene.Scene getScene()
    • getGame

      public static Game getGame()
    • setScene

      public static void setScene​(javafx.scene.Scene scene)
    • setGame

      public static void setGame​(Game game)
    • getStage

      public static javafx.stage.Stage getStage()
    • setStage

      public static void setStage​(javafx.stage.Stage stage)
    • updateScene

      public static void updateScene() throws java.io.IOException
      Methode to update scene on stage.
      Throws:
      java.io.IOException
    • newGame

      public static void newGame() throws java.io.IOException
      Methode to start new game.
      Throws:
      java.io.IOException
    • changeTimer

      public static void changeTimer()