Modifier and Type | Class and Description |
---|---|
class |
GoCommand
Implementation of the 'go' user command for adventure games.
|
class |
HelpCommand
Implementation of the 'help' user command for adventure games.
|
class |
QuitCommand
Implementation of the 'quit' user command for adventure games.
|
Modifier and Type | Method and Description |
---|---|
Command |
CommandWords.get(java.lang.String word)
Given a command word, find and return the matching command object.
|
Command |
Parser.getCommand(java.lang.String inputLine)
Get the next command based on the specified input.
|
Modifier and Type | Method and Description |
---|---|
void |
CommandWords.addCommand(java.lang.String word,
Command command)
Add (or replace) a command word.
|