Interface ICheatCommand
-
- All Known Subinterfaces:
IDoubleSelectableCheatCommand,ISingleSelectableCheatCommand
- All Known Implementing Classes:
AddWeaponToShipCheat,BecomeAldermanCheat,BecomeMayorCheat,CreateShipCheat,VerboseCheat
public interface ICheatCommandInterface for a cheat command.- Author:
- Andi Hotz, (c) Sahits GmbH, 2018 Created on May 04, 2018
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidexecute()Execute this cheat.javafx.scene.input.KeyCodegetControlKey()Retrieve the control key that goes with the cheat command.java.lang.StringgetDescriptionTextKey()Retrieve the text key for describing the cheat.javafx.scene.input.KeyCodegetKey()Retrieve the key that will activate this cheat together with the control key.
-
-
-
Method Detail
-
getControlKey
javafx.scene.input.KeyCode getControlKey()
Retrieve the control key that goes with the cheat command.- Returns:
- control key (like Ctrl, Shift, Alt)
-
getKey
javafx.scene.input.KeyCode getKey()
Retrieve the key that will activate this cheat together with the control key.- Returns:
- cheat key
-
getDescriptionTextKey
java.lang.String getDescriptionTextKey()
Retrieve the text key for describing the cheat.- Returns:
- text key.
-
execute
void execute()
Execute this cheat.
-
-