Class UIFactory

  • All Implemented Interfaces:
    ch.sahits.game.openpatrician.utilities.IInvalidatable

    public class UIFactory
    extends java.lang.Object
    implements ch.sahits.game.openpatrician.utilities.IInvalidatable
    Factory class for various instances.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2014 Created on Dec 01, 2014
    • Constructor Detail

      • UIFactory

        public UIFactory()
    • Method Detail

      • getXMLImageLoader

        public ch.sahits.game.graphic.image.IDataImageLoader getXMLImageLoader()
        Retrieve the XML image loader for the main screen
        Returns:
        image loader for XML defined images
      • getMainGameScene

        public MainGameScene getMainGameScene​(double width,
                                              double heigth)
      • getCheatMenu

        public ch.sahits.game.openpatrician.javafx.control.CheatMenu getCheatMenu​(ch.sahits.game.openpatrician.model.cheat.ICheatCommand command,
                                                                                  javafx.beans.property.ReadOnlyDoubleProperty width)
        Create the cheat menu control.
        Parameters:
        command - cheat command that is represented in the cheat menu
        width - of the parent
        Returns:
        cheat menu control
      • invalidate

        public void invalidate()
        Specified by:
        invalidate in interface ch.sahits.game.openpatrician.utilities.IInvalidatable