The command parser. Handles listening for user input, searching for a valid command and invoking that command.
Returns a list of all of the Commands for which the parser is listening.
Returns a list of all of the Conversation options for which the parser is listening.
The parser will take care of adding and removing conversation options automatically.
static String getPrompt()
Returns the command prompt string.
static void addCommand(Command c)
Adds a Command for which the parser will listen and invoke.
static boolean removeCommand(Command c)
Returns true if Command
c has been successfully removed. False otherwise.
static void clearConversationOptions()
Removes all of the Conversation options for which the parser is currently listening. This is handled automatically, but can be called manually as well.
static void setPrompt(String p)
Set the prompt with which the Player is presented.