Package-level declarations
Types
GdxRuntimeException that is thrown when trying to access a non-existing MapLayer of a TiledMap instance.
GdxRuntimeException that is thrown when trying to access a non-existing property of a MapProperties instance.
GdxRuntimeException that is thrown when trying to access a shape of a MapObject that do not have any shape such as the TextureMapObject.
Common type of exceptions thrown by the Tiled API extensions.
Properties
Extension property to retrieve the background color of the TiledMap. Null if property was not set.
Extension property to retrieve the hex side length of a hexagonal TiledMap.
Extension property to retrieve the orientation of the TiledMap.
Extension property to retrieve the stagger axis of the TiledMap.
Extension property to retrieve the stagger index of the TiledMap.
Extension property to retrieve the tile height of each tile of the TiledMap.
Functions
Extension method to directly access the MapProperties of a MapLayer and its containsKey method.
Extension method to directly access the MapProperties of a MapObject and its containsKey method.
Extension method to directly access the MapProperties of a TiledMap and its containsKey method.
Extension method to directly access the MapProperties of a TiledMapTile and its containsKey method.
Extension method to directly access the MapProperties of a TiledMapTileSet and its containsKey method.
Extension method to run an action on a specific type of layers of the TiledMap. The lambda takes the matching MapLayer as a parameter.
Extension method to easily execute an action per MapObject of a given MapLayer. If the layer does not exist then nothing is happening.
Returns true if and only if the MapLayers collection is not empty.
Returns true if and only if the MapObjects collection is not empty.
Extension method to retrieve a MapLayer of a TiledMap. If the layer does not exist then this method is throwing a MissingLayerException
Extension method to directly access the MapProperties of a MapLayer. If the property is not defined then this method throws a MissingPropertyException.
Extension method to directly access the MapProperties of a MapObject. If the property is not defined then this method throws a MissingPropertyException.
Extension method to directly access the MapProperties of a TiledMap. If the property is not defined then this method throws a MissingPropertyException.
Extension method to directly access the MapProperties of a TiledMapTile. If the property is not defined then this method throws a MissingPropertyException.
Extension method to directly access the MapProperties of a TiledMapTileSet. If the property is not defined then this method throws a MissingPropertyException.
Extension method to directly access the MapProperties of a MapLayer. The type is automatically derived from the type of the given default value. If the property is not defined the defaultValue will be returned.
Extension method to directly access the MapProperties of a MapObject. The type is automatically derived from the type of the given default value. If the property is not defined the defaultValue will be returned.
Extension method to directly access the MapProperties of a TiledMap. The type is automatically derived from the type of the given default value. If the property is not defined the defaultValue will be returned.
Extension method to directly access the MapProperties of a TiledMapTile. The type is automatically derived from the type of the given default value. If the property is not defined the defaultValue will be returned.
Extension method to directly access the MapProperties of a TiledMapTileSet. The type is automatically derived from the type of the given default value. If the property is not defined the defaultValue will be returned.
Extension method to directly access the MapProperties of a MapLayer. If the property is not defined then this method returns null.
Extension method to directly access the MapProperties of a MapObject. If the property is not defined then this method returns null.
Extension method to directly access the MapProperties of a TiledMap. If the property is not defined then this method returns null.
Extension method to directly access the MapProperties of a TiledMapTile. If the property is not defined then this method returns null.
Extension method to directly access the MapProperties of a TiledMapTileSet. If the property is not defined then this method returns null.
Extension method to retrieve the total height of the TiledMap. It is the result of the height multiplied by the tile height of the map.
Extension method to retrieve the total width of the TiledMap. It is the result of the width multiplied by the tile width of the map.
Automatically calls BatchTiledMapRenderer.beginRender and BatchTiledMapRenderer.endRender.