| Modifier and Type | Method and Description |
|---|---|
private static void |
Driver.addExit(int x,
int y,
World.Direction direction,
World world)
addExit will add an exit to the room which matches the X and Y coordinates
|
private static void |
Driver.addExits(World world)
addExits will add the exits for each room
|
private static void |
Driver.addRoom(World world,
int x,
int y)
addRoom adds a room into the world at particular coordinates.
|
private static void |
Driver.buildWorld(World world)
buildWorld will build the constant aspects of the four by three maze
|
Room |
Room.getLeftRoom(World world,
World.Direction direction)
getLeftRoom will return the room to the left
|
Room |
Room.getNextRoom(World world,
World.Direction direction)
getNextRoom will return the room that lies in the specified Direction
|
Room |
Room.getRightRoom(World world,
World.Direction direction)
getRightRoom will return the room to the right of an intended direction.
|
Room |
Room.move(World world,
World.Direction direction)
move will move a player to the room that lies in the direction specified.
|
void |
Board.repaintWorld(World world,
Player player) |
| Constructor and Description |
|---|
Board(World world,
Player player) |