Package com.badlogic.gdx.maps.tiled
Class TiledMap
- java.lang.Object
-
- com.badlogic.gdx.maps.Map
-
- com.badlogic.gdx.maps.tiled.TiledMap
-
- All Implemented Interfaces:
Disposable
public class TiledMap extends Map
- See Also:
Map
-
-
Constructor Summary
Constructors Constructor Description TiledMap()Creates an empty TiledMap.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Disposes all resources likeTextureinstances that the map may own.TiledMapTileSetsgetTileSets()voidsetOwnedResources(Array<? extends Disposable> resources)Used by loaders to set resources when loading the map directly, withoutAssetManager.-
Methods inherited from class com.badlogic.gdx.maps.Map
getLayers, getProperties
-
-
-
-
Method Detail
-
getTileSets
public TiledMapTileSets getTileSets()
- Returns:
- collection of tilesets for this map.
-
setOwnedResources
public void setOwnedResources(Array<? extends Disposable> resources)
Used by loaders to set resources when loading the map directly, withoutAssetManager. To be disposed indispose().- Parameters:
resources-
-
-