Package de.gurkenlabs.litiengine.util
Class CommandManager
java.lang.Object
de.gurkenlabs.litiengine.util.CommandManager
- All Implemented Interfaces:
ILaunchable
public class CommandManager
extends java.lang.Object
implements ILaunchableConstructor Summary
Constructors Constructor Description CommandManager()Method Summary
Modifier and Type Method Description 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.
Constructor Details
CommandManager
public CommandManager()
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:ILaunchableStarts the operation of this instance.- Specified by:
startin interfaceILaunchable
terminate
public void terminate()Description copied from interface:ILaunchableTerminates the operation of this instance.- Specified by:
terminatein interfaceILaunchable
