cmsc433.p3
Interface Path

All Known Implementing Classes:
STPath

public interface Path

A Path interface represents a path through the grid, and consists of a list of points.


Method Summary
 void addPoint(Point p)
          Adds a point to the end of the path
 java.util.List<Point> getPoints()
          Returns the list of points that define this path.
 

Method Detail

getPoints

java.util.List<Point> getPoints()
Returns the list of points that define this path.

Returns:
the list of points defining this path

addPoint

void addPoint(Point p)
Adds a point to the end of the path

Parameters:
p - - the point to add