/**
 * 
 */
package com.badlogic.gdx.maps.objects;

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

/**
 * @brief represents polygon map objects
 */
public class PolygonMapObject 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 polygon map object
	 */
	public PolygonMapObject() {
		this(new float[0]);
	}
	
	/**
	 * @param vertices polygon defining vertices (at least 3)
	 */
	public PolygonMapObject(float[] vertices) {
		super();
		polygon = new Polygon(vertices);
	}
}

@@ -693,19 +693,8 @@
 ) %7B%0A
-%09%09super();%0A
 %09%09po
@@ -727,10 +727,128 @@
 es);%0A%09%7D%0A
+%09%0A%09/**%0A%09 * @param polygon the polygon%0A%09 */%0A%09public PolygonMapObject(Polygon polygon) %7B%0A%09%09this.polygon = polygon;%0A%09%7D%0A%09%0A
 %7D%0A

Add PolygonMapObject constructor taking a Polygon