Package com.badlogic.gdx.maps
Class Map
- java.lang.Object
-
- com.badlogic.gdx.maps.Map
-
- All Implemented Interfaces:
Disposable
- Direct Known Subclasses:
TiledMap
public class Map extends java.lang.Object implements Disposable
A generic level map implementation. A map hasMapPropertieswhich describe general attributes. Availability of properties depends on the type of map, e.g. what format is was loaded from etc. A map hasMapLayers. Map layers are ordered and indexed. AMapLayercontainsMapObjectswhich represent things within the layer. Different types ofMapObjectare available, e.g.CircleMapObject,TextureMapObject, and so on. A map can be rendered by aMapRenderer. A MapRenderer implementation may chose to only render specific MapObject or MapLayer types. There are more specialized implementations of Map for specific use cases. e.g. theTiledMapclass and its associated classes add functionality specifically for tile maps on top of the basic map functionality. Maps must be disposed through a call todispose()when no longer used.
-
-
Constructor Summary
Constructors Constructor Description Map()Creates empty map
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Disposes all resources likeTextureinstances that the map may own.MapLayersgetLayers()MapPropertiesgetProperties()
-
-
-
Method Detail
-
getLayers
public MapLayers getLayers()
- Returns:
- the map's layers
-
getProperties
public MapProperties getProperties()
- Returns:
- the map's properties
-
dispose
public void dispose()
Disposes all resources likeTextureinstances that the map may own.- Specified by:
disposein interfaceDisposable
-
-