public class Map extends java.lang.Object implements Disposable
MapProperties
which describe general attributes. Availability of properties
depends on the type of map, e.g. what format is was loaded from etc.
A map has MapLayers
. Map layers are ordered and indexed. A MapLayer
contains
MapObjects
which represent things within the layer. Different types
of MapObject
are available, e.g. CircleMapObject
, TextureMapObject
,
and so on.
A map can be rendered by a MapRenderer
. 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.
the TiledMap
class and its associated classes add functionality specifically for
tile maps on top of the basic map functionality.
Maps must be disposed through a call to dispose()
when no longer used.Constructor and Description |
---|
Map()
Creates empty map
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes all resources like
Texture instances that
the map may own. |
MapLayers |
getLayers() |
MapProperties |
getProperties() |
public MapLayers getLayers()
public MapProperties getProperties()
public void dispose()
Texture
instances that
the map may own.dispose
in interface Disposable