com.badlogic.gdx.maps
Class MapLayer
java.lang.Object
com.badlogic.gdx.maps.MapLayer
- Direct Known Subclasses:
- TiledMapTileLayer
public class MapLayer
- extends Object
Map layer containing a set of objects and properties
MapLayer
public MapLayer()
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.