Package
Class
Tree
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
C
G
H
I
P
R
S
V
C
Command
- Class in
<Unnamed>
This class is part of the "World of Zuul" application.
Command(CommandWord, String)
- Constructor for class
Command
Create a command object.
CommandWord
- Enum in
<Unnamed>
Representations for all the valid command words for the game.
CommandWords
- Class in
<Unnamed>
This class is part of the "World of Zuul" application.
CommandWords()
- Constructor for class
CommandWords
Constructor - initialise the command words.
G
Game
- Class in
<Unnamed>
This class is the main class of the "World of Zuul" application.
Game()
- Constructor for class
Game
Create the game and initialise its internal map.
getCommand()
- Method in class
Parser
getCommandWord()
- Method in class
Command
Return the command word (the first word) of this command.
getCommandWord(String)
- Method in class
CommandWords
Find the CommandWord associated with a command word.
getExit(String)
- Method in class
Room
Return the room that is reached if we go from this room in direction "direction".
getLongDescription()
- Method in class
Room
Return a description of the room in the form: You are in the kitchen.
getSecondWord()
- Method in class
Command
getShortDescription()
- Method in class
Room
H
hasSecondWord()
- Method in class
Command
I
isCommand(String)
- Method in class
CommandWords
Check whether a given String is a valid command word.
isUnknown()
- Method in class
Command
P
Parser
- Class in
<Unnamed>
This class is part of the "World of Zuul" application.
Parser()
- Constructor for class
Parser
Create a parser to read from the terminal window.
play()
- Method in class
Game
Main play routine.
R
Room
- Class in
<Unnamed>
Class Room - a room in an adventure game.
Room(String)
- Constructor for class
Room
Create a room described "description".
S
setExit(String, Room)
- Method in class
Room
Define an exit from this room.
showAll()
- Method in class
CommandWords
Print all valid commands to System.out.
showCommands()
- Method in class
Parser
Print out a list of valid command words.
V
valueOf(String)
- Static method in enum
CommandWord
Returns the enum constant of this type with the specified name.
values()
- Static method in enum
CommandWord
Returns an array containing the constants of this enum type, in the order they're declared.
C
G
H
I
P
R
S
V
Package
Class
Tree
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes