Class MainGameScene


  • public class MainGameScene
    extends ch.sahits.game.openpatrician.javafx.OpenPatricianScene
    • Constructor Summary

      Constructors 
      Constructor Description
      MainGameScene​(double width, double height, ch.sahits.game.graphic.image.IImageLoader loader, IJavaFXControlLoader controlLoader)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void heightChange​(double oldHeight, double newHeigth)  
      void initializeGameView​(ch.sahits.game.openpatrician.event.data.NewGameClient newGameDTO)
      Event handler for initializing the new game when the server is done.
      void widthChange​(double oldWidth, double newWidth)  
      • Methods inherited from class ch.sahits.game.openpatrician.javafx.OpenPatricianScene

        getRoot
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MainGameScene

        public MainGameScene​(double width,
                             double height,
                             ch.sahits.game.graphic.image.IImageLoader loader,
                             IJavaFXControlLoader controlLoader)
    • Method Detail

      • initializeGameView

        public void initializeGameView​(ch.sahits.game.openpatrician.event.data.NewGameClient newGameDTO)
        Event handler for initializing the new game when the server is done.
        Parameters:
        newGameDTO - data transfer object.
      • widthChange

        public void widthChange​(double oldWidth,
                                double newWidth)
        Overrides:
        widthChange in class ch.sahits.game.openpatrician.javafx.OpenPatricianScene
      • heightChange

        public void heightChange​(double oldHeight,
                                 double newHeigth)
        Overrides:
        heightChange in class ch.sahits.game.openpatrician.javafx.OpenPatricianScene