com.badlogic.gdx.maps.objects
Class RectangleMapObject

java.lang.Object
  extended by com.badlogic.gdx.maps.MapObject
      extended by com.badlogic.gdx.maps.objects.RectangleMapObject

public class RectangleMapObject
extends MapObject


Constructor Summary
RectangleMapObject()
          Creates a rectangle object which lower left corner is at (0, 0) with width=1 and height=1
RectangleMapObject(float x, float y, float width, float height)
           
 
Method Summary
 Rectangle getRectangle()
           
 
Methods inherited from class com.badlogic.gdx.maps.MapObject
getColor, getName, getOpacity, getProperties, isVisible, setColor, setName, setOpacity, setVisible
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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)
Parameters:
x -
y -
width -
height -
Method Detail

getRectangle

public Rectangle getRectangle()
Returns:
rectangle shape


Copyright © 2013. All Rights Reserved.