public class AtlasTmxMapLoader extends BaseTmxMapLoader<AtlasTmxMapLoader.AtlasTiledMapLoaderParameters>
Modifier and Type | Class and Description |
---|---|
protected static interface |
AtlasTmxMapLoader.AtlasResolver |
static class |
AtlasTmxMapLoader.AtlasTiledMapLoaderParameters |
BaseTmxMapLoader.Parameters
Modifier and Type | Field and Description |
---|---|
protected AtlasTmxMapLoader.AtlasResolver |
atlasResolver |
protected Array<Texture> |
trackedTextures |
convertObjectToTileSpace, FLAG_FLIP_DIAGONALLY, FLAG_FLIP_HORIZONTALLY, FLAG_FLIP_VERTICALLY, flipY, map, mapHeightInPixels, mapTileHeight, mapTileWidth, mapWidthInPixels, MASK_CLEAR, root, xml
Constructor and Description |
---|
AtlasTmxMapLoader() |
AtlasTmxMapLoader(FileHandleResolver resolver) |
Modifier and Type | Method and Description |
---|---|
protected void |
addStaticTiles(FileHandle tmxFile,
ImageResolver imageResolver,
TiledMapTileSet tileSet,
XmlReader.Element element,
Array<XmlReader.Element> tileElements,
java.lang.String name,
int firstgid,
int tilewidth,
int tileheight,
int spacing,
int margin,
java.lang.String source,
int offsetX,
int offsetY,
java.lang.String imageSource,
int imageWidth,
int imageHeight,
FileHandle image) |
protected FileHandle |
getAtlasFileHandle(FileHandle tmxFile) |
protected Array<AssetDescriptor> |
getDependencyAssetDescriptors(FileHandle tmxFile,
TextureLoader.TextureParameter textureParameter) |
TiledMap |
load(java.lang.String fileName) |
TiledMap |
load(java.lang.String fileName,
AtlasTmxMapLoader.AtlasTiledMapLoaderParameters parameter) |
void |
loadAsync(AssetManager manager,
java.lang.String fileName,
FileHandle tmxFile,
AtlasTmxMapLoader.AtlasTiledMapLoaderParameters parameter)
Loads the non-OpenGL part of the asset and injects any dependencies of the asset into the AssetManager.
|
TiledMap |
loadSync(AssetManager manager,
java.lang.String fileName,
FileHandle file,
AtlasTmxMapLoader.AtlasTiledMapLoaderParameters parameter)
Loads the OpenGL part of the asset.
|
protected void |
setTextureFilters(Texture.TextureFilter min,
Texture.TextureFilter mag) |
addStaticTiledMapTile, addTileObjectGroup, addTileProperties, castProperty, createAnimatedTile, createTileLayerCell, getDependencies, getRelativeFileHandle, getTileIds, loadBasicLayerInfo, loadImageLayer, loadLayer, loadLayerGroup, loadObject, loadObject, loadObject, loadObjectGroup, loadProperties, loadTiledMap, loadTileLayer, loadTileSet, unsignedByteToInt
unloadAsync
resolve
protected AtlasTmxMapLoader.AtlasResolver atlasResolver
public AtlasTmxMapLoader()
public AtlasTmxMapLoader(FileHandleResolver resolver)
public TiledMap load(java.lang.String fileName)
public TiledMap load(java.lang.String fileName, AtlasTmxMapLoader.AtlasTiledMapLoaderParameters parameter)
public void loadAsync(AssetManager manager, java.lang.String fileName, FileHandle tmxFile, AtlasTmxMapLoader.AtlasTiledMapLoaderParameters parameter)
AsynchronousAssetLoader
loadAsync
in class AsynchronousAssetLoader<TiledMap,AtlasTmxMapLoader.AtlasTiledMapLoaderParameters>
fileName
- the name of the asset to loadtmxFile
- the resolved file to loadparameter
- the parameters to use for loading the assetpublic TiledMap loadSync(AssetManager manager, java.lang.String fileName, FileHandle file, AtlasTmxMapLoader.AtlasTiledMapLoaderParameters parameter)
AsynchronousAssetLoader
loadSync
in class AsynchronousAssetLoader<TiledMap,AtlasTmxMapLoader.AtlasTiledMapLoaderParameters>
file
- the resolved file to loadprotected Array<AssetDescriptor> getDependencyAssetDescriptors(FileHandle tmxFile, TextureLoader.TextureParameter textureParameter)
getDependencyAssetDescriptors
in class BaseTmxMapLoader<AtlasTmxMapLoader.AtlasTiledMapLoaderParameters>
protected void addStaticTiles(FileHandle tmxFile, ImageResolver imageResolver, TiledMapTileSet tileSet, XmlReader.Element element, Array<XmlReader.Element> tileElements, java.lang.String name, int firstgid, int tilewidth, int tileheight, int spacing, int margin, java.lang.String source, int offsetX, int offsetY, java.lang.String imageSource, int imageWidth, int imageHeight, FileHandle image)
addStaticTiles
in class BaseTmxMapLoader<AtlasTmxMapLoader.AtlasTiledMapLoaderParameters>
protected FileHandle getAtlasFileHandle(FileHandle tmxFile)
protected void setTextureFilters(Texture.TextureFilter min, Texture.TextureFilter mag)