|
|||||||
| 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 part of the "World of Zuul" application. "World of Zuul" is a very simple, text based adventure game. This class holds an enumeration of all command words known to the game. It is used to recognise commands as they are typed in.
| Constructor Summary | |
|---|---|
CommandWords()
Constructor - initialise the command words. |
|
| Method Summary | |
|---|---|
CommandWord |
getCommandWord(String commandWord)
Find the CommandWord associated with a command word. |
boolean |
isCommand(String aString)
Check whether a given String is a valid command word. |
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 |
| Constructor Detail |
|---|
public CommandWords()
| Method Detail |
|---|
public CommandWord getCommandWord(String commandWord)
commandWord - The word to look up.
public boolean isCommand(String aString)
public void showAll()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||