com.badlogic.gdx.maps
Class MapObject

java.lang.Object
  extended by com.badlogic.gdx.maps.MapObject
Direct Known Subclasses:
CircleMapObject, EllipseMapObject, PolygonMapObject, PolylineMapObject, RectangleMapObject, TextureMapObject

public class MapObject
extends Object

Generic Map entity with basic attributes like name, opacity, color


Constructor Summary
MapObject()
           
 
Method Summary
 Color getColor()
           
 String getName()
           
 float getOpacity()
           
 MapProperties getProperties()
           
 boolean isVisible()
           
 void setColor(Color color)
           
 void setName(String name)
           
 void setOpacity(float opacity)
           
 void setVisible(boolean visible)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapObject

public MapObject()
Method Detail

getName

public String getName()
Returns:
object's name

setName

public void setName(String name)
Parameters:
name - new name for the object

getColor

public Color getColor()
Returns:
object's color

setColor

public void setColor(Color color)
Parameters:
color - new color for the object

getOpacity

public float getOpacity()
Returns:
object's opacity

setOpacity

public void setOpacity(float opacity)
Parameters:
opacity - new opacity value for the object

isVisible

public boolean isVisible()
Returns:
whether the object is visible or not

setVisible

public void setVisible(boolean visible)
Parameters:
visible - toggles object's visibility

getProperties

public MapProperties getProperties()
Returns:
object's properties set


Copyright © 2013. All Rights Reserved.