public class Wall
- extends Thing
A Wall will block the movement of a robot into or out of the intersection
which contains it, depending on the robot's direction of travel and
the orientation of the Wall.
- Byron Weber Becker
Construct a new wall.
Save a representation of this intersection to an output stream.
public Wall(City city,
- Construct a new wall.
city - The city in which the wall will exist.
street - The wall's initial street within the city.
avenue - The wall's initial avenue within the city.
orientation - The direction in which the wall blocks entry
into and exit out of the wall's intersection. One of
Direction.NORTH, EAST, SOUTH, WEST}.
protected void save(String indent,
- Save a representation of this intersection to an output stream.
save in class
indent - the indentation, for formatting purposes
out - the output stream