public abstract class BaseTmxMapLoader<P extends AssetLoaderParameters<TiledMap>> extends AsynchronousAssetLoader<TiledMap,P>
Modifier and Type | Class and Description |
---|---|
static class |
BaseTmxMapLoader.Parameters |
Modifier and Type | Field and Description |
---|---|
protected boolean |
convertObjectToTileSpace |
protected static int |
FLAG_FLIP_DIAGONALLY |
protected static int |
FLAG_FLIP_HORIZONTALLY |
protected static int |
FLAG_FLIP_VERTICALLY |
protected boolean |
flipY |
protected TiledMap |
map |
protected int |
mapHeightInPixels |
protected int |
mapTileHeight |
protected int |
mapTileWidth |
protected int |
mapWidthInPixels |
protected static int |
MASK_CLEAR |
protected XmlReader.Element |
root |
protected XmlReader |
xml |
Constructor and Description |
---|
BaseTmxMapLoader(FileHandleResolver resolver) |
Modifier and Type | Method and Description |
---|---|
protected TiledMapTileLayer.Cell |
createTileLayerCell(boolean flipHorizontally,
boolean flipVertically,
boolean flipDiagonally) |
protected static FileHandle |
getRelativeFileHandle(FileHandle file,
java.lang.String path) |
static int[] |
getTileIds(XmlReader.Element element,
int width,
int height) |
protected void |
loadBasicLayerInfo(MapLayer layer,
XmlReader.Element element) |
protected void |
loadImageLayer(TiledMap map,
XmlReader.Element element,
FileHandle tmxFile,
ImageResolver imageResolver) |
protected void |
loadObject(TiledMap map,
MapLayer layer,
XmlReader.Element element) |
protected void |
loadObjectGroup(TiledMap map,
XmlReader.Element element) |
protected void |
loadProperties(MapProperties properties,
XmlReader.Element element) |
protected void |
loadTileLayer(TiledMap map,
XmlReader.Element element) |
protected static int |
unsignedByteToInt(byte b) |
loadAsync, loadSync
getDependencies, resolve
protected static final int FLAG_FLIP_HORIZONTALLY
protected static final int FLAG_FLIP_VERTICALLY
protected static final int FLAG_FLIP_DIAGONALLY
protected static final int MASK_CLEAR
protected XmlReader xml
protected XmlReader.Element root
protected boolean convertObjectToTileSpace
protected boolean flipY
protected int mapTileWidth
protected int mapTileHeight
protected int mapWidthInPixels
protected int mapHeightInPixels
protected TiledMap map
public BaseTmxMapLoader(FileHandleResolver resolver)
protected void loadTileLayer(TiledMap map, XmlReader.Element element)
protected void loadObjectGroup(TiledMap map, XmlReader.Element element)
protected void loadImageLayer(TiledMap map, XmlReader.Element element, FileHandle tmxFile, ImageResolver imageResolver)
protected void loadBasicLayerInfo(MapLayer layer, XmlReader.Element element)
protected void loadObject(TiledMap map, MapLayer layer, XmlReader.Element element)
protected void loadProperties(MapProperties properties, XmlReader.Element element)
protected TiledMapTileLayer.Cell createTileLayerCell(boolean flipHorizontally, boolean flipVertically, boolean flipDiagonally)
public static int[] getTileIds(XmlReader.Element element, int width, int height)
protected static int unsignedByteToInt(byte b)
protected static FileHandle getRelativeFileHandle(FileHandle file, java.lang.String path)