/*******************************************************************************
 * Copyright 2011 See AUTHORS file.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 ******************************************************************************/

package com.badlogic.gdx.maps.objects;

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

/**
 * @brief represents circle shaped map objects
 */
public class CircleMapObject extends MapObject {
	
	private Circle circle;
	
	/**
	 * @return circle shape
	 */
	public Circle getCircle() {
		return circle;
	}
	
	/**
	 * Creates a circle map object at (0,0) with r=1.0
	 */
	public CircleMapObject() {
		this(0.0f, 0.0f, 1.0f);
	}
	
	/**
	 * Creates circle map object
	 * 
	 * @param x
	 * @param y
	 * @param radius
	 */
	public CircleMapObject(float x, float y, float radius) {
		super();
		circle = new Circle(x, y, radius);
	}
}