package config;

import lejos.geom.Line;
import lejos.geom.Rectangle;
import lejos.robotics.mapping.LineMap;

public class Map {
	public static LineMap makeMap () {
		Line[] lines = {
			/* L-shape polygon */
			new Line(164,356,58,600),
			new Line(58,600,396,721),
			new Line(396,721,455,600),
			new Line(455,600,227,515),
			new Line(227,515,280,399),
			new Line(280,399,164,356),
			/* Triangle */
			new Line(778,526,1079,748),
			new Line(1079,748,1063,436),
			new Line(1063,436,778,526),
			/* Pentagon */
			new Line(503,76,333,267),
			new Line(333,267,481,452),
			new Line(481,452,730,409),
			new Line(730,409,704,150),
			new Line(704,150,503,76)
		};
		Rectangle bounds = new Rectangle(0, 0, 1189, 841);
		LineMap  map = new LineMap(lines, bounds);

		return map;
	}
}
