Package com.badlogic.gdx.maps.objects
Class RectangleMapObject
- java.lang.Object
-
- com.badlogic.gdx.maps.MapObject
-
- com.badlogic.gdx.maps.objects.RectangleMapObject
-
public class RectangleMapObject extends MapObject
-
-
Constructor Summary
Constructors Constructor Description RectangleMapObject()
Creates a rectangle object which lower left corner is at (0, 0) with width=1 and height=1RectangleMapObject(float x, float y, float width, float height)
Creates aRectangle
object with the given X and Y coordinates along with a given width and height.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rectangle
getRectangle()
-
Methods inherited from class com.badlogic.gdx.maps.MapObject
getColor, getName, getOpacity, getProperties, isVisible, setColor, setName, setOpacity, setVisible
-
-
-
-
Constructor Detail
-
RectangleMapObject
public RectangleMapObject()
Creates a rectangle object which lower left corner is at (0, 0) with width=1 and height=1
-
RectangleMapObject
public RectangleMapObject(float x, float y, float width, float height)
Creates aRectangle
object with the given X and Y coordinates along with a given width and height.
-
-
Method Detail
-
getRectangle
public Rectangle getRectangle()
- Returns:
- rectangle shape
-
-