|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Map
public class Map
Constructor Summary | |
---|---|
Map()
|
Method Summary | |
---|---|
static void |
printGrid(Universe g)
This method prints the universe grid, labelling each location with a number. |
static void |
printLocations(Universe g,
Vehicle user)
This method prints all the locations in the current Universe, indicating the player's current location as well. |
static void |
printMap(Vehicle user)
This method prints the position of each location in the universe, and the position of the player in the Universe (i.e. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Map()
Method Detail |
---|
public static void printMap(Vehicle user)
user
- the Vehicle representing the userpublic static void printGrid(Universe g)
g
- The Universe to print the grid ofpublic static void printLocations(Universe g, Vehicle user)
g
- The Universe to print the grid ofuser
- The player's Vehicle, used to get the player's
current location
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |