System.out.println("p=" + p);
    public ArrayList getMapCoordArray() {	ArrayList mapCoords = new ArrayList();	IntLine il;	ListIterator i = segments.listIterator(0);	Point p = new Point();	Point oldP = new Point();	Point p2 = new Point();	byte direction;	int dx;	int dy;	while (i.hasNext()) {	    il = (IntLine) i.next();	    p.setLocation(il.x1, il.y1);	    p2.setLocation(il.x2, il.y2);	    TrackTile.deltasToTileCoords(p);	    if (!p.equals(oldP))		mapCoords.add(new Point(p));	    oldP.setLocation(p);	    if (il.x1 == il.x2 && il.y1 == il.y2)		continue;	    direction = il.getDirection();	    dx = CompassPoints.getUnitDeltaX(direction);	    dy = CompassPoints.getUnitDeltaY(direction);	    TrackTile.deltasToTileCoords(p2); 	    	    while (!p2.equals(p)) {		p.translate(dx, dy);		mapCoords.add(new Point(p));		oldP.setLocation(p);	    }	}	return mapCoords;    }