public class Driver
extends java.lang.Object
| Constructor and Description |
|---|
Driver() |
| Modifier and Type | Method and Description |
|---|---|
private static void |
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 |
addExits(World world)
addExits will add the exits for each room
|
private static void |
addRoom(World world,
int x,
int y)
addRoom adds a room into the world at particular coordinates.
|
private static void |
buildWorld(World world)
buildWorld will build the constant aspects of the four by three maze
|
static void |
main(java.lang.String[] args) |
private static void |
printConclusion(Player player)
printConclusion will output the final status for a player.
|
private static void |
printLocation(Player player)
printLocation will output the room that a player is in, as well as displaying
information about the player's accumulated rewards.
|
public static void main(java.lang.String[] args)
private static void printLocation(Player player)
player - The player for whom we wish to see current statusprivate static void printConclusion(Player player)
player - The player for whom we wish to see final statusprivate static void addRoom(World world, int x, int y)
world - The world in which the room should be addedx - X coordinate, i.e. columny - Y coordinate, i.e., rowprivate static void addExit(int x,
int y,
World.Direction direction,
World world)
x - X coordinate, i.e. columny - Y coordinate, i.e., rowdirection - The direction of the room exitprivate static void buildWorld(World world)
private static void addExits(World world)