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 ILaunchable
Constructor Summary
Constructors Constructor Description CommandManager()
Method Summary
Modifier and Type Method Description void
bind(java.lang.String command, java.util.function.Predicate<java.lang.String[]> commandConsumer)
boolean
executeCommand(java.lang.String command)
void
start()
Starts the operation of this instance.void
terminate()
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:ILaunchable
Starts the operation of this instance.- Specified by:
start
in interfaceILaunchable
terminate
public void terminate()Description copied from interface:ILaunchable
Terminates the operation of this instance.- Specified by:
terminate
in interfaceILaunchable