C G H I P R S
C
- Command - class Command.
- This class is the main class of the "World of Zuul" application.
- Command(String, String) -
Constructor for class Command
- Create a command object.
- CommandWords - class CommandWords.
-
- CommandWords() -
Constructor for class CommandWords
- Constructor - initialise the command words.
G
- Game - class Game.
- 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.
- 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 long description of this room, in the form:
You are in the kitchen.
- getSecondWord() -
Method in class Command
- Return the second word of this command.
- getShortDescription() -
Method in class Room
- Return the description of the room (the one that was defined in the
constructor).
H
- hasSecondWord() -
Method in class Command
- Return true if the command has a second word.
I
- isCommand(String) -
Method in class CommandWords
- Check whether a given String is a valid command word.
- isUnknown() -
Method in class Command
- Return true if this command was not understood.
P
- Parser - class Parser.
-
- Parser() -
Constructor for class Parser
-
- play() -
Method in class Game
- Main play routine.
R
- Room - class Room.
-
- 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
-
- showCommands() -
Method in class Parser
- Print out a list of valid command words.
C G H I P R S
Generated by BlueJ