|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectCommandWords
public class CommandWords
This class is the main class of the "World of Zuul" application. "World of Zuul" is a very simple, text based adventure game. This class holds a collection of all command words known to the game. It is used to recognise commands as they are typed in.
Field Summary | |
---|---|
private java.util.HashMap<java.lang.String,Command> |
commands
|
Constructor Summary | |
---|---|
CommandWords()
Constructor - initialise the command words. |
Method Summary | |
---|---|
Command |
get(java.lang.String word)
Given a command word, find and return the matching command object. |
void |
showAll()
Print all valid commands to System.out. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.HashMap<java.lang.String,Command> commands
Constructor Detail |
---|
public CommandWords()
Method Detail |
---|
public Command get(java.lang.String word)
public void showAll()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |