Package | Description |
---|---|
student.adventure |
This package provides all of the course-specific classes based
on the "World of Zuul" adventure game example from Chapter 7
of Objects First with Java by Michael Kolling
and David Barnes.
|
Modifier and Type | Method and Description |
---|---|
Room |
Player.getCurrentRoom()
Return the current room for this player.
|
Room |
Room.getExit(String direction)
Return the room that is reached if we go from this room in direction
"direction".
|
Modifier and Type | Method and Description |
---|---|
void |
Player.setCurrentRoom(Room room)
Set the current room for this player.
|
void |
Room.setExit(String direction,
Room neighbor)
Define an exit from this room.
|