JavaScript is disabled on your browser.
Method Summary
All Methods Instance Methods Abstract Methods Default Methods
void
Adds an ILayer to the Layer list at the given index.
void
Adds an ILayer to the Layer list.
Gets the IGroupLayers contained in a Layer list.
Gets the IImageLayers contained in a Layer list.
Gets the first IMapObject with the given ID from a layer list.
Gets the IMapObjectLayer containing a given IMapObject.
Gets all MapObjectLayers in the Layer list.
Gets all map objects in the layer list.
Gets all map objects in the layer list using the map IDs passed as a parameter.
Gets all map objects in the layer list that belong to the types passed as a parameter.
Gets all render layers in the Layer list.
Gets the ITileLayers contained in a Layer list.
void
Removes a layer from the Layer list.
void
Removes an ILayer from the Layer list.
default void
Removes the first IMapObject with the given ID.
Methods inherited from interface de.gurkenlabs.litiengine.environment.tilemap.ICustomPropertyProvider
getBoolValue , getBoolValue , getByteValue , getByteValue , getCharValue , getCharValue , getColorValue , getColorValue , getCommaSeparatedStringValues , getDoubleValue , getDoubleValue , getEnumValue , getEnumValue , getFileValue , getFileValue , getFloatValue , getFloatValue , getIntValue , getIntValue , getLongValue , getLongValue , getMapObjectId , getProperties , getProperty , getShortValue , getShortValue , getStringValue , getStringValue , hasCustomProperty , removeProperty , setProperties , setValue , setValue , setValue , setValue , setValue , setValue , setValue , setValue , setValue , setValue , setValue , setValue , setValue , setValue
Method Details
getRenderLayers
Gets all render layers in the Layer list.
Returns:
a List of ILayers
getMapObjectLayers
Gets all MapObjectLayers in the Layer list.
Returns:
a List of IMapObjectLayers
addLayer
Adds an ILayer to the Layer list.
Parameters:
layer - the layer to be added
addLayer
void addLayer (int index,
ILayer layer)
Adds an ILayer to the Layer list at the given index.
Parameters:
index - the index
layer - the layer to be added
removeLayer
void removeLayer (ILayer layer)
Removes an ILayer from the Layer list.
Parameters:
layer - the layer to be removed
getMapObjectLayer
Gets the IMapObjectLayer containing a given IMapObject.
Parameters:
mapObject - the map object being searched
Returns:
the map object layer containing the map object
removeLayer
void removeLayer (int index)
Removes a layer from the Layer list.
Parameters:
index - the index of the layer to be removed
getMapObjects
Gets all map objects in the layer list.
Returns:
a Collection of all IMapObjects in the layer list
getMapObjects
Gets all map objects in the layer list that belong to the types passed as a parameter.
Parameters:
types - an array of types for which the layer list is searched
Returns:
a Collection of IMapObjects matching the given MapObjectTypes
getMapObjects
Gets all map objects in the layer list using the map IDs passed as a parameter. Please note that map IDs are intended
to be unique identifiers for IMapObjects (and their corresponding Entity). This method is just a way
of checking for non-unique IDs and re-assigning them before adding entities.
Parameters:
mapIDs - an array of mapIDs for which the layer list is searched
Returns:
a Collection of IMapObjects matching the given MapObject IDs
See Also:
getMapObject
Gets the first IMapObject with the given ID from a layer list.
Parameters:
mapId - the map id of the desired IMapObject
Returns:
the IMapObject with the given ID
removeMapObject
default void removeMapObject (int mapId)
Removes the first IMapObject with the given ID.
Parameters:
mapId - the map id of the IMapObject we want to remove
getTileLayers
Gets the ITileLayers contained in a Layer list.
Returns:
a List of all ITileLayers
getImageLayers
Gets the IImageLayers contained in a Layer list.
Returns:
a List of all IImageLayers
getGroupLayers
Gets the IGroupLayers contained in a Layer list.
Returns:
a List of all IGroupLayers