package com.badlogic.gdx.maps.objects;

import com.badlogic.gdx.maps.MapObject;
import com.badlogic.gdx.math.Polygon;

/**
 * @brief Represents polyline map objects
 */
public class PolylineMapObject extends MapObject {

	private Polygon polygon;
	
	/**
	 * @return polygon shape
	 */
	public Polygon getPolygon() {
		return polygon;
	}
	
	/**
	 * @param polygon new object's polygon shape
	 */
	public void setPolygon(Polygon polygon) {
		this.polygon = polygon;
	}
	
	/**
	 * Creates empty polyline 
	 */
	public PolylineMapObject() {
		this(new float[0]);
	}
	
	/**
	 * @param vertices polyline defining vertices (at least 3 because a polygon is used to represent it)
	 */
	public PolylineMapObject(float[] vertices) {
		super();
		polygon = new Polygon(vertices);
	}

}

@@ -106,19 +106,20 @@
 ath.Poly
-gon
+line
 ;%0A%0A/**%0A 
@@ -228,27 +228,29 @@
 ate Poly
-gon
+line
  poly
-gon
+line
 ;%0A%09%0A%09/**
@@ -262,27 +262,28 @@
 @return poly
-gon
+line
  shape%0A%09 */%0A
@@ -298,19 +298,20 @@
 Poly
-gon
+line
  getPoly
 gon(
@@ -306,19 +306,20 @@
  getPoly
-gon
+line
 () %7B%0A%09%09r
@@ -324,27 +324,28 @@
 %09return poly
-gon
+line
 ;%0A%09%7D%0A%09%0A%09/**%0A
@@ -359,19 +359,20 @@
 ram poly
-gon
+line
  new obj
@@ -381,19 +381,20 @@
 t's poly
-gon
+line
  shape%0A%09
@@ -421,27 +421,30 @@
 Poly
-gon
+line
 (Poly
-gon
+line
  poly
-gon
+line
 ) %7B%0A
@@ -458,21 +458,23 @@
 poly
-gon
+line
  = poly
-gon
+line
 ;%0A%09%7D
@@ -626,163 +626,222 @@
 ices
- (at least 3 because a polygon is used to represent it)%0A%09 */%0A%09public PolylineMapObject(float%5B%5D vertices) %7B%0A%09%09super();%0A%09%09polygon = new Polygon(vertices)
+%0A%09 */%0A%09public PolylineMapObject(float%5B%5D vertices) %7B%0A%09%09polyline = new Polyline(vertices);%0A%09%7D%0A%0A%09/**%0A%09 * @param polyline the polyline%0A%09 */%0A%09public PolylineMapObject(Polyline polyline) %7B%0A%09%09this.polyline = polyline
 ;%0A%09%7D%0A
+%09
 %0A%7D%0A

Change PolylineMapObject to use new Polyline class.