Interface ICheatCommand
-
- All Known Subinterfaces:
IDoubleSelectableCheatCommand
,ISingleSelectableCheatCommand
- All Known Implementing Classes:
AddWeaponToShipCheat
,BecomeAldermanCheat
,BecomeMayorCheat
,CreateShipCheat
,VerboseCheat
public interface ICheatCommand
Interface 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 void
execute()
Execute this cheat.javafx.scene.input.KeyCode
getControlKey()
Retrieve the control key that goes with the cheat command.java.lang.String
getDescriptionTextKey()
Retrieve the text key for describing the cheat.javafx.scene.input.KeyCode
getKey()
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.
-
-