Class 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.ApplicationContext context  
      private javafx.scene.input.KeyCode controlKey  
      private boolean debugOutputOn  
      private java.lang.String descriptionTextKey  
      private javafx.scene.input.KeyCode key  
    • Constructor Summary

      Constructors 
      Constructor Description
      VerboseCheat()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()
      Execute this cheat.
      (package private) static java.util.List<java.lang.String> getLoggerNames()  
      private void printGameState()  
      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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • controlKey

        private final javafx.scene.input.KeyCode controlKey
      • key

        private final javafx.scene.input.KeyCode key
      • context

        @Autowired
        private org.springframework.context.ApplicationContext context
      • debugOutputOn

        private boolean debugOutputOn
    • Constructor Detail

      • VerboseCheat

        public VerboseCheat()
    • Method Detail

      • 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()