Class CommandManager

java.lang.Object
de.gurkenlabs.litiengine.util.CommandManager
All Implemented Interfaces:
ILaunchable

public class CommandManager
extends java.lang.Object
implements ILaunchable
  • Constructor Summary

    Constructors 
    ConstructorDescription
    CommandManager() 
  • Method Summary

    Modifier and TypeMethodDescription
    voidbind​(java.lang.String command, java.util.function.Predicate<java.lang.String[]> commandConsumer) 
    booleanexecuteCommand​(java.lang.String command) 
    voidstart()
    Starts the operation of this instance.
    voidterminate()
    Terminates the operation of this instance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • bind

      public void bind​(java.lang.String command, java.util.function.Predicate<java.lang.String[]> commandConsumer)
    • executeCommand

      public boolean executeCommand​(java.lang.String command)
    • start

      public void start()
      Description copied from interface: ILaunchable
      Starts the operation of this instance.
      Specified by:
      start in interface ILaunchable
    • terminate

      public void terminate()
      Description copied from interface: ILaunchable
      Terminates the operation of this instance.
      Specified by:
      terminate in interface ILaunchable