| Modifier and Type | Field and Description |
|---|---|
| protected XmlReader. | |
| protected ObjectMap | |
| protected ObjectIntMap | |
| protected XmlReader |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract void | addStaticTiles(FileHandle tmxFile, ImageResolver imageResolver, TiledMapTileSet tileset, XmlReader.
|
| protected void | |
| protected void | |
| protected XmlReader. | cloneElementShallow(XmlReader.
Returns a shallow copy of the source element we pass in. |
| protected AnimatedTiledMapTile | createAnimatedTile(TiledMapTileSet tileSet, TiledMapTile tile, XmlReader.
|
| public Array | getDependencies(String fileName, FileHandle tmxFile, P parameter)
Implements abstract com. Returns the assets this asset requires to be loaded first. |
| protected XmlReader. | |
| private static String | |
| public static int[] | |
| protected void | |
| protected void | loadClassProperties(String className, MapProperties classProperties, XmlReader.
|
| protected void | loadImageLayer(TiledMap map, MapLayers parentLayers, XmlReader.
|
| protected void | loadLayer(TiledMap map, MapLayers parentLayers, XmlReader.
|
| protected void | loadLayerGroup(TiledMap map, MapLayers parentLayers, XmlReader.
|
| protected void | |
| protected void | |
| protected void | |
| protected void | loadObjectGroup(TiledMap map, MapLayers parentLayers, XmlReader.
|
| protected void | |
| protected TiledMap | Returns: theTiledMapthe Filehandle of the tmx file tmxFile, P parameter, ImageResolver imageResolver)Implements abstract com. Loads the map data, given the XML root element |
| protected void | |
| public TiledMapTileSet | |
| protected XmlReader. | mergeParentElementWithTemplate(XmlReader.
Recursively merges a “parent” (map) object element with its referenced template object element. |
| protected XmlReader. | mergeProperties(XmlReader.
Merges two <properties> tags from a parent and template. |
| protected XmlReader. | Returns: a merged Element representing the combined elements.Element which contains the single xml element we are currently parsing mapElement,tmxFile tmxFile)Method specifically meant to help resolve template object properties and attributes found in objectgroups. |
| private XmlReader. | |
| private FileHandle |
| root | back to summary |
|---|---|
| protected XmlReader. | |
| templateCache | back to summary |
|---|---|
| protected ObjectMap<String, XmlReader. | |
| tilesetPathsToGIDs | back to summary |
|---|---|
| protected ObjectIntMap<String> tilesetPathsToGIDs | |
| xml | back to summary |
|---|---|
| protected XmlReader xml | |
| BaseTmxMapLoader | back to summary |
|---|---|
| public BaseTmxMapLoader(FileHandleResolver resolver) | |
| addStaticTiles | back to summary |
|---|---|
| protected abstract void addStaticTiles(FileHandle tmxFile, ImageResolver imageResolver, TiledMapTileSet tileset, XmlReader. | |
| addTileObjectGroup | back to summary |
|---|---|
| protected void addTileObjectGroup(TiledMapTile tile, XmlReader. | |
| addTileProperties | back to summary |
|---|---|
| protected void addTileProperties(TiledMapTile tile, XmlReader. | |
| cloneElementShallow | back to summary |
|---|---|
| protected XmlReader. Returns a shallow copy of the source element we pass in. | |
| createAnimatedTile | back to summary |
|---|---|
| protected AnimatedTiledMapTile createAnimatedTile(TiledMapTileSet tileSet, TiledMapTile tile, XmlReader. | |
| getDependencies | back to summary |
|---|---|
| public Array Implements abstract com. Doc from com. Returns the assets this asset requires to be loaded first. This method may be called on a thread other than the GL thread.
| |
| getPropertyByName | back to summary |
|---|---|
| protected XmlReader. | |
| getPropertyValue | back to summary |
|---|---|
| private static String getPropertyValue(XmlReader. | |
| getTileIds | back to summary |
|---|---|
| public static int[] getTileIds(XmlReader. | |
| loadBasicLayerInfo | back to summary |
|---|---|
| protected void loadBasicLayerInfo(MapLayer layer, XmlReader. | |
| loadClassProperties | back to summary |
|---|---|
| protected void loadClassProperties(String className, MapProperties classProperties, XmlReader. | |
| loadImageLayer | back to summary |
|---|---|
| protected void loadImageLayer(TiledMap map, MapLayers parentLayers, XmlReader. | |
| loadLayer | back to summary |
|---|---|
| protected void loadLayer(TiledMap map, MapLayers parentLayers, XmlReader. | |
| loadLayerGroup | back to summary |
|---|---|
| protected void loadLayerGroup(TiledMap map, MapLayers parentLayers, XmlReader. | |
| loadObject | back to summary |
|---|---|
| protected void loadObject(TiledMap map, MapLayer layer, XmlReader. | |
| loadObject | back to summary |
|---|---|
| protected void loadObject(TiledMap map, TiledMapTile tile, XmlReader. | |
| loadObject | back to summary |
|---|---|
| protected void loadObject(TiledMap map, MapObjects objects, XmlReader. | |
| loadObjectGroup | back to summary |
|---|---|
| protected void loadObjectGroup(TiledMap map, MapLayers parentLayers, XmlReader. | |
| loadProperties | back to summary |
|---|---|
| protected void loadProperties(final MapProperties properties, XmlReader. | |
| loadTiledMap | back to summary |
|---|---|
| protected TiledMap loadTiledMap(FileHandle tmxFile, P parameter, ImageResolver imageResolver) Implements abstract com. Loads the map data, given the XML root element
| |
| loadTileLayer | back to summary |
|---|---|
| protected void loadTileLayer(TiledMap map, MapLayers parentLayers, XmlReader. | |
| loadTileSet | back to summary |
|---|---|
| public TiledMapTileSet loadTileSet(XmlReader. | |
| mergeParentElementWithTemplate | back to summary |
|---|---|
| protected XmlReader. Recursively merges a “parent” (map) object element with its referenced template object element. Attributes and properties found in the template are allowed to be overwritten by any matching ones found in its parent element. The returned element is a new detached tree (parent = null) so it can be handed straight to the loadObject() method without issues. | |
| mergeProperties | back to summary |
|---|---|
| protected XmlReader. Merges two | |
| resolveTemplateObject | back to summary |
|---|---|
| protected XmlReader. Method specifically meant to help resolve template object properties and attributes found in objectgroups. Each template object links to a specific .tx file. Attributes and properties found in the template are allowed to be overwritten by any matching ones found in its parent element. Knowing this, we will merge the two elements together with the parent's props taking precedence and then return the merged value.
| |
| resolveTilesetElement | back to summary |
|---|---|
| private XmlReader. | |
| resolveTilesetImage | back to summary |
|---|---|
| private FileHandle resolveTilesetImage(XmlReader. | |