JavaScript is disabled on your browser.
Skip navigation links
Package
Class
Tree
Deprecated
Index
Help
Prev
Next
Frames
No Frames
All Classes
SEARCH:
JavaScript is disabled on your browser.
A
C
E
F
G
H
I
L
M
O
P
Q
R
S
U
W
A
agree(String)
- Static method in class
UI
Print a question and return a response.
allCommands()
- Static method in class
CommandMapper
C
CommandMapper
- Class in
<Unnamed>
This class is part of the "World of Zuul" application.
CommandMapper()
- Constructor for class
CommandMapper
createRooms(Scanner)
- Static method in class
Room
Create rooms and their interconnections by taking room names, exit data and descriptions from a file Scanner, and return a map of room names to rooms.
E
execute(String[])
- Method in class
Goer
Try to go to one direction.
execute(String[])
- Method in class
Helper
Print out some help information.
execute(String[])
- Method in class
Quitter
"quit" was entered.
execute(String[])
- Method in interface
Response
Execute a command.
F
FileUtil
- Class in
<Unnamed>
File utilities for reading from a file with a Scanner, skipping comment lines starting with #.
FileUtil()
- Constructor for class
FileUtil
G
Game
- Class in
<Unnamed>
This class is the main class of the "Exciting Campus" application.
Game(String)
- Constructor for class
Game
Create the game and initialise its internal map
getCommandName()
- Method in class
Goer
getCommandName()
- Method in class
Helper
getCommandName()
- Method in class
Quitter
getCommandName()
- Method in interface
Response
getCurrentRoom()
- Method in class
Game
Return the current room.
getExit(String)
- Method in class
Room
Return the room that is reached if we go from this room in direction "direction".
getKeyboardScanner()
- Static method in class
UI
Encourage ONLY ONE keyboard Scanner.
getLongDescription()
- Method in class
Room
Return a description of the room in the form: You are in the kitchen.
getNamedRoom(String)
- Method in class
Game
Return the Room associated with a name.
getNonCommentLine(Scanner)
- Static method in class
FileUtil
Return the next non-comment line.
getResponse(String)
- Static method in class
CommandMapper
Return the command associated with a command word.
getShortDescription()
- Method in class
Room
Goer
- Class in
<Unnamed>
Response to try to go to a new room.
Goer(Game)
- Constructor for class
Goer
H
help()
- Method in class
Goer
help()
- Method in class
Helper
help()
- Method in class
Quitter
help()
- Method in interface
Response
Helper
- Class in
<Unnamed>
Help Response
Helper(Map<String, Response>, String)
- Constructor for class
Helper
I
init(Game, String)
- Static method in class
CommandMapper
Initialize the command response mapping
isCommand(String)
- Static method in class
CommandMapper
Check whether a given String is a valid command word.
L
lineWrap(Scanner)
- Static method in class
FileUtil
Read a long line and return it wrapped into lines.
M
main(String[])
- Static method in class
Game
Make a Game playable from the command line.
O
openBundledFile(String)
- Static method in class
ResourceUtil
Return an input stream coming from a file located with this class in the filesystem or in a jar file.
openFileScanner(String)
- Static method in class
ResourceUtil
Create and return a Scanner coming from a text file located with this class.
P
play()
- Method in class
Game
Main play routine.
promptChar(String)
- Static method in class
UI
Prompt for a character.
promptDouble(String)
- Static method in class
UI
Prompt and read a double.
promptDoubleArray(String)
- Static method in class
UI
Prompt and read a line of numbers.
promptInt(String)
- Static method in class
UI
Prompt and read an int.
promptIntArray(String)
- Static method in class
UI
Prompt and read a line of integers.
promptLine(String)
- Static method in class
UI
Prompt the user for a line and return the line entered.
Q
Quitter
- Class in
<Unnamed>
Quit Response
Quitter()
- Constructor for class
Quitter
R
readParagraph(Scanner)
- Static method in class
FileUtil
Read a paragraph consisting of one or more nonempty lines terminated by an empty line, and return a single String, preserving the newlines, and breaking up lines that are too long.
ResourceUtil
- Class in
<Unnamed>
Utilities for accessing resources stored with the .class file in the file system or in a jar file.
ResourceUtil()
- Constructor for class
ResourceUtil
Response
- Interface in
<Unnamed>
Object that responds to a user's command
Room
- Class in
<Unnamed>
Class Room - a room in an adventure game.
Room(String)
- Constructor for class
Room
Create a room, given its description.
S
setCurrentRoom(Room)
- Method in class
Game
Set the current room.
setExit(String, Room)
- Method in class
Room
Define an exit from this room.
U
UI
- Class in
<Unnamed>
Aid user keyboard input with prompts and error catching.
UI()
- Constructor for class
UI
W
wordWrap(String, int)
- Static method in class
FileUtil
Add line breaks to s so it wraps within a specified width.
A
C
E
F
G
H
I
L
M
O
P
Q
R
S
U
W
Skip navigation links
Package
Class
Tree
Deprecated
Index
Help
Prev
Next
Frames
No Frames
All Classes
JavaScript is disabled on your browser.