Class ConsoleManager

java.lang.Object
gaiasky.script.ConsoleManager

public class ConsoleManager extends Object
Manages the Gaia Sky console/terminal, keeps its history and more. The console accepts all calls defined in IScriptingInterface. Aliases to the most useful calls are defined in shortcutMap, and can be used as shortcuts. The user interface part of the console in implemented in ConsoleInterface.
  • Constructor Details

    • ConsoleManager

      public ConsoleManager()
  • Method Details

    • addCommandToHistory

      public void addCommandToHistory(String cmd)
    • cmdHistory

      public com.badlogic.gdx.utils.Array<String> cmdHistory()
    • messages

      public com.badlogic.gdx.utils.Array<ConsoleManager.Message> messages()
    • hasMethod

      public boolean hasMethod(String methodName)
    • getMethods

      public com.badlogic.gdx.utils.Array<Method> getMethods(String methodName)
    • methodMap

      public Map<String,com.badlogic.gdx.utils.Array<Method>> methodMap()
    • shortcutMap

      public Map<String,String> shortcutMap()
    • unwrapShortcut

      public String unwrapShortcut(String command)