Class CreateShipCheat
- java.lang.Object
-
- ch.sahits.game.openpatrician.display.model.cheat.CreateShipCheat
-
- All Implemented Interfaces:
ICheatCommand
,ISingleSelectableCheatCommand
@Component public class CreateShipCheat extends java.lang.Object implements ISingleSelectableCheatCommand
Cheat to add a ship of a selected type in the current city by CTRL+S.- Author:
- Andi Hotz, (c) Sahits GmbH, 2018 Created on May 04, 2018
-
-
Field Summary
Fields Modifier and Type Field Description private org.springframework.context.ApplicationContext
context
private javafx.scene.input.KeyCode
controlKey
private java.lang.String
descriptionTextKey
private javafx.scene.input.KeyCode
key
private Locale
locale
private org.springframework.context.MessageSource
messageSource
private java.util.List<GenericTriple<java.lang.String>>
options
private GenericTriple<java.lang.String>
selectedOption
-
Constructor Summary
Constructors Constructor Description CreateShipCheat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
Execute this cheat.private void
init()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ch.sahits.game.openpatrician.model.cheat.ICheatCommand
getControlKey, getDescriptionTextKey, getKey
-
Methods inherited from interface ch.sahits.game.openpatrician.model.cheat.ISingleSelectableCheatCommand
getOptions, setSelectedOption
-
-
-
-
Field Detail
-
controlKey
private final javafx.scene.input.KeyCode controlKey
-
key
private final javafx.scene.input.KeyCode key
-
descriptionTextKey
private final java.lang.String descriptionTextKey
- See Also:
- Constant Field Values
-
options
private final java.util.List<GenericTriple<java.lang.String>> options
-
selectedOption
private GenericTriple<java.lang.String> selectedOption
-
context
@Autowired private org.springframework.context.ApplicationContext context
-
messageSource
@Autowired private org.springframework.context.MessageSource messageSource
-
locale
@Autowired private Locale locale
-
-
Method Detail
-
init
@PostConstruct private void init()
-
execute
public void execute()
Description copied from interface:ICheatCommand
Execute this cheat.- Specified by:
execute
in interfaceICheatCommand
-
-