com.badlogic.gdx.maps
Class MapLayer

java.lang.Object
  extended by com.badlogic.gdx.maps.MapLayer
Direct Known Subclasses:
TiledMapTileLayer

public class MapLayer
extends Object

Map layer containing a set of objects and properties


Constructor Summary
MapLayer()
           
 
Method Summary
 String getName()
           
 MapObjects getObjects()
           
 float getOpacity()
           
 MapProperties getProperties()
           
 boolean isVisible()
           
 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

MapLayer

public MapLayer()
Method Detail

getName

public String getName()
Returns:
layer's name

setName

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

getOpacity

public float getOpacity()
Returns:
layer's opacity

setOpacity

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

getObjects

public MapObjects getObjects()
Returns:
collection of objects contained in the layer

isVisible

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

setVisible

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

getProperties

public MapProperties getProperties()
Returns:
layer's set of properties


Copyright © 2014. All Rights Reserved.