Class VerboseCheat
- java.lang.Object
-
- ch.sahits.game.openpatrician.display.model.cheat.VerboseCheat
-
- All Implemented Interfaces:
ICheatCommand
@Component public class VerboseCheat extends java.lang.Object implements ICheatCommand
Implementation of the verbose cheat, activated by CTRL+V.- Author:
- Andi Hotz, (c) Sahits GmbH, 2018 Created on May 04, 2018
-
-
Field Summary
Fields Modifier and Type Field Description private org.springframework.context.ApplicationContextcontextprivate javafx.scene.input.KeyCodecontrolKeyprivate booleandebugOutputOnprivate java.lang.StringdescriptionTextKeyprivate javafx.scene.input.KeyCodekey
-
Constructor Summary
Constructors Constructor Description VerboseCheat()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()Execute this cheat.(package private) static java.util.List<java.lang.String>getLoggerNames()private voidprintGameState()private ch.qos.logback.classic.LevelsetLevel(java.lang.String loggerName, ch.qos.logback.classic.Level level)Override the logging level of a given logger, return the previous level-
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
-
debugOutputOn
private boolean debugOutputOn
-
-
Method Detail
-
execute
public void execute()
Description copied from interface:ICheatCommandExecute this cheat.- Specified by:
executein interfaceICheatCommand
-
printGameState
private void printGameState()
-
setLevel
private ch.qos.logback.classic.Level setLevel(java.lang.String loggerName, ch.qos.logback.classic.Level level)Override the logging level of a given logger, return the previous level
-
getLoggerNames
static java.util.List<java.lang.String> getLoggerNames()
-
-