Class NewGameScene


  • public class NewGameScene
    extends OpenPatricianScene
    Scene for starting a new game.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2013 Created on Oct 26, 2013
    • Constructor Detail

      • NewGameScene

        public NewGameScene()
    • Method Detail

      • createControls

        @PostConstruct
        private void createControls()
      • getHomeTowns4Map

        private java.util.List<OpenPatricianSpinnerOptionDataModel> getHomeTowns4Map()
        Create a list of town names that are available on the selected map as home towns.
        Returns:
        list of city names of the selected map for the spinner
      • getSourceFromFile

        private javax.xml.transform.Source getSourceFromFile​(java.lang.String fileName)
      • getStartYears

        private java.util.List<OpenPatricianSpinnerOptionDataModel> getStartYears()
        Initialize the list of start years from 1259 to 1400
        Returns:
        list of starting years for the spinner.
      • getDificutlyList

        private java.util.List<java.lang.String> getDificutlyList()
        Compile a list of the difficulty levels
        Returns:
        List of localized difficulty settings
      • getObjectiveList

        private java.util.List<OpenPatricianSpinnerOptionDataModel> getObjectiveList()
        Create a list of objectives to select from
        Returns:
        List of localized game objectives.
      • getStyleSheetFilename

        private java.lang.String getStyleSheetFilename()