public class NewGameScene extends OpenPatricianScene
| Modifier and Type | Class and Description |
|---|---|
private class |
NewGameScene.NewGameAction |
| Modifier and Type | Field and Description |
|---|---|
private ch.sahits.game.openpatrician.model.city.CityFactory |
cityFactory |
private com.google.common.eventbus.AsyncEventBus |
clientServerEventBus |
private OpenPatricianSlider |
difficulty |
private OpenPatricianRadioButton |
femaleRadioButton |
private ch.sahits.game.openpatrician.util.RandomNameLoader |
firstNameLoader |
private ch.sahits.game.openpatrician.model.Date |
gameDate |
private ch.sahits.game.openpatrician.model.GameFactory |
gameFactory |
private GameOptionsService |
gameOptions |
private OpenPatricianSpinner<String> |
hometown |
private OpenPatricianWoodenTextInput |
lastName |
private ch.sahits.game.openpatrician.util.RandomNameLoader |
lastNameLoader |
private ch.sahits.game.openpatrician.util.l10n.Locale |
locale |
private static org.apache.logging.log4j.Logger |
logger |
private OpenPatricianRadioButton |
maleRadioButton |
private OpenPatricianSpinner<String> |
map |
private MapProviderService |
mapProviderService |
private org.springframework.context.MessageSource |
messageSource |
private OpenPatricianWoodenTextInput |
name |
private OpenPatricianSpinner<String> |
objective |
private SceneChangeable |
sceneChangeable |
private ch.sahits.game.openpatrician.model.ship.ShipFactory |
shipFactory |
private OpenPatricianSlider |
speed |
private OpenPatricianSpinner<Integer> |
startYear |
private UIFactory |
uiFactory |
private org.springframework.oxm.Unmarshaller |
unmarshaller |
| Constructor and Description |
|---|
NewGameScene(ch.sahits.game.openpatrician.util.RandomNameLoader firstNameLoader,
ch.sahits.game.openpatrician.util.RandomNameLoader lastNameLoader) |
| Modifier and Type | Method and Description |
|---|---|
private void |
createControls() |
private List<String> |
getDificutlyList()
Compile a list of the difficulty levels
|
private Map<String,String> |
getHomeTowns4Map()
Create a list of town names that are available on the selected map as home towns.
|
private Map<String,String> |
getMapList()
Retrieve the list of the available maps
|
private Map<String,String> |
getObjectiveList()
Create a list of objectives to select from
|
SceneChangeable |
getSceneChangeable() |
private Source |
getSourceFromFile(String fileName) |
private Map<String,Integer> |
getStartYears()
Initialize the list of start years from 1300 to 1400
|
private String |
getStyleSheetFilename() |
void |
setSceneChangeable(SceneChangeable sceneChangeable) |
getRoot, heightChange, widthChangeprivate static final org.apache.logging.log4j.Logger logger
private ch.sahits.game.openpatrician.util.RandomNameLoader firstNameLoader
private ch.sahits.game.openpatrician.util.RandomNameLoader lastNameLoader
private OpenPatricianSpinner<String> objective
private OpenPatricianSlider speed
private OpenPatricianSlider difficulty
private OpenPatricianSpinner<Integer> startYear
private OpenPatricianSpinner<String> hometown
private OpenPatricianSpinner<String> map
private OpenPatricianRadioButton femaleRadioButton
private OpenPatricianRadioButton maleRadioButton
private OpenPatricianWoodenTextInput lastName
private OpenPatricianWoodenTextInput name
@Autowired private ch.sahits.game.openpatrician.model.city.CityFactory cityFactory
@Autowired private ch.sahits.game.openpatrician.model.GameFactory gameFactory
@Autowired private ch.sahits.game.openpatrician.model.ship.ShipFactory shipFactory
private SceneChangeable sceneChangeable
@Autowired @Qualifier(value="serverClientEventBus") private com.google.common.eventbus.AsyncEventBus clientServerEventBus
@Autowired @Qualifier(value="jaxb2MapMarshaller") private org.springframework.oxm.Unmarshaller unmarshaller
@Autowired private ch.sahits.game.openpatrician.util.l10n.Locale locale
@Autowired private ch.sahits.game.openpatrician.model.Date gameDate
@Autowired private UIFactory uiFactory
@Autowired private GameOptionsService gameOptions
@Autowired private org.springframework.context.MessageSource messageSource
@Autowired private MapProviderService mapProviderService
public NewGameScene(@Value(value="firstNameLoader")
ch.sahits.game.openpatrician.util.RandomNameLoader firstNameLoader,
@Value(value="lastNameLoader")
ch.sahits.game.openpatrician.util.RandomNameLoader lastNameLoader)
@PostConstruct private void createControls()
public SceneChangeable getSceneChangeable()
public void setSceneChangeable(SceneChangeable sceneChangeable)
private Map<String,String> getHomeTowns4Map()
private Map<String,Integer> getStartYears()
private List<String> getDificutlyList()
private Map<String,String> getObjectiveList()
private String getStyleSheetFilename()
Copyright © 2011-2016 Sahits GmbH. All Rights Reserved.