public class Map
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Spot[][] |
floorplan |
protected java.io.PrintStream |
log |
protected Thing[] |
things |
Constructor and Description |
---|
Map(java.lang.String filename,
java.io.PrintStream log) |
Modifier and Type | Method and Description |
---|---|
void |
addThing(Thing a) |
boolean |
canLookThroughLocation(Coord c) |
boolean |
canPassThroughLocation(Coord c) |
void |
iterate() |
boolean |
onMap(Coord c) |
int |
peopleRemaining() |
Spot |
spotAt(Coord c) |
Thing[] |
thingsAt(Coord c) |
java.lang.String |
toString() |
protected Spot[][] floorplan
protected Thing[] things
protected java.io.PrintStream log
public Map(java.lang.String filename, java.io.PrintStream log) throws java.io.IOException
java.io.IOException
public boolean onMap(Coord c)
public int peopleRemaining()
public void addThing(Thing a)
public boolean canLookThroughLocation(Coord c)
public boolean canPassThroughLocation(Coord c)
public void iterate()
public java.lang.String toString()
toString
in class java.lang.Object