Class BecomeAldermanCheat
- java.lang.Object
-
- ch.sahits.game.openpatrician.display.model.cheat.BecomeAldermanCheat
-
- All Implemented Interfaces:
ICheatCommand
@Component public class BecomeAldermanCheat extends java.lang.Object implements ICheatCommand
Cheat command to become alderman.- Author:
- Andi Hotz, (c) Sahits GmbH, 2018 Created on May 06, 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
-
Constructor Summary
Constructors Constructor Description BecomeAldermanCheat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
Execute this cheat.-
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
-
-
-
-
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
-
context
@Autowired private org.springframework.context.ApplicationContext context
-
-
Method Detail
-
execute
public void execute()
Description copied from interface:ICheatCommand
Execute this cheat.- Specified by:
execute
in interfaceICheatCommand
-
-