| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| protected static class | BaseTiledMapLoader.
Representation of a single Tiled class property. |
| Modifier and Type | Field and Description |
|---|---|
| protected boolean | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected boolean | |
| protected IntMap | |
| protected TiledMap | |
| protected int | |
| protected int | |
| protected int | |
| protected int | |
| protected static final int | |
| protected ObjectMap | projectClassInfo
Optional Tiled project class information. |
| protected Array |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | addStaticTiledMapTile(TiledMapTileSet tileSet, TextureRegion textureRegion, int tileId, float offsetX, float offsetY)
|
| protected Object | |
| protected TiledMapTileLayer. | |
| protected abstract Array | getDependencyAssetDescriptors(FileHandle mapFile, TextureLoader.
Meant to be called within getDependencies() of a child class |
| public IntMap | Returns: the map of the ids toMapObject, or null if loadTiledMap(FileHandle, Parameters, ImageResolver)
method has not been called yet.Gets a map of the object ids to the |
| protected static FileHandle | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | loadProjectFile(String projectFilePath)
Parses the given Tiled project file for class property information. |
| protected abstract TiledMap | Returns: theTiledMapthe Filehandle of the map file, .tmx or .tmj supported mapFile, P parameter, ImageResolver imageResolver)Loads the map data, given the root element |
| public static String | Returns: A String representing the color in the #RRGGBBAA formatA String representing a color in Tiled's #AARRGGBB format tiledColor)Converts Tiled's color format #AARRGGBB to a libGDX appropriate #RRGGBBAA The Tiled Map Editor uses the color format #AARRGGBB But note, if the alpha of the color is set to 255, Tiled does not include it as part of the color code in the .tmx ex. |
| protected static int |
| convertObjectToTileSpace | back to summary |
|---|---|
| protected boolean convertObjectToTileSpace | |
| FLAG_FLIP_DIAGONALLY | back to summary |
|---|---|
| protected static final int FLAG_FLIP_DIAGONALLY | |
| FLAG_FLIP_HORIZONTALLY | back to summary |
|---|---|
| protected static final int FLAG_FLIP_HORIZONTALLY | |
| FLAG_FLIP_VERTICALLY | back to summary |
|---|---|
| protected static final int FLAG_FLIP_VERTICALLY | |
| flipY | back to summary |
|---|---|
| protected boolean flipY | |
| idToObject | back to summary |
|---|---|
| protected IntMap<MapObject> idToObject | |
| map | back to summary |
|---|---|
| protected TiledMap map | |
| mapHeightInPixels | back to summary |
|---|---|
| protected int mapHeightInPixels | |
| mapTileHeight | back to summary |
|---|---|
| protected int mapTileHeight | |
| mapTileWidth | back to summary |
|---|---|
| protected int mapTileWidth | |
| mapWidthInPixels | back to summary |
|---|---|
| protected int mapWidthInPixels | |
| MASK_CLEAR | back to summary |
|---|---|
| protected static final int MASK_CLEAR | |
| projectClassInfo | back to summary |
|---|---|
| protected ObjectMap<String, Array<BaseTiledMapLoader. Optional Tiled project class information. Key is the classname and value is an array of class members (=class properties) | |
| runOnEndOfLoadTiled | back to summary |
|---|---|
| protected Array<Runnable> runOnEndOfLoadTiled | |
| BaseTiledMapLoader | back to summary |
|---|---|
| public BaseTiledMapLoader(FileHandleResolver resolver) | |
| addStaticTiledMapTile | back to summary |
|---|---|
| protected void addStaticTiledMapTile(TiledMapTileSet tileSet, TextureRegion textureRegion, int tileId, float offsetX, float offsetY) | |
| castProperty | back to summary |
|---|---|
| protected Object castProperty(String name, String value, String type) | |
| createTileLayerCell | back to summary |
|---|---|
| protected TiledMapTileLayer. | |
| getDependencyAssetDescriptors | back to summary |
|---|---|
| protected abstract Array Meant to be called within getDependencies() of a child class | |
| getIdToObject | back to summary |
|---|---|
| public IntMap Gets a map of the object ids to the
| |
| getRelativeFileHandle | back to summary |
|---|---|
| protected static FileHandle getRelativeFileHandle(FileHandle file, String path) | |
| loadBasicProperty | back to summary |
|---|---|
| protected void loadBasicProperty(MapProperties properties, String name, String value, String type) | |
| loadJsonClassProperties | back to summary |
|---|---|
| protected void loadJsonClassProperties(String className, MapProperties classProperties, JsonValue classElement) | |
| loadMapPropertiesClassDefaults | back to summary |
|---|---|
| protected void loadMapPropertiesClassDefaults(String className, MapProperties mapProperties) | |
| loadObjectProperty | back to summary |
|---|---|
| protected void loadObjectProperty(final MapProperties properties, final String name, String value) | |
| loadProjectFile | back to summary |
|---|---|
| protected void loadProjectFile(String projectFilePath) Parses the given Tiled project file for class property information. A class can have multiple members. Refer to
| |
| loadTiledMap | back to summary |
|---|---|
| protected abstract TiledMap loadTiledMap(FileHandle mapFile, P parameter, ImageResolver imageResolver) Loads the map data, given the root element
| |
| tiledColorToLibGDXColor | back to summary |
|---|---|
| public static String tiledColorToLibGDXColor(String tiledColor) Converts Tiled's color format #AARRGGBB to a libGDX appropriate #RRGGBBAA The Tiled Map Editor uses the color format #AARRGGBB But note, if the alpha of the color is set to 255, Tiled does not include it as part of the color code in the .tmx ex. Red (r:255,g:0,b:0,a:255) becomes #ff0000, Red (r:255,g:0,b:0,a:127) becomes #7fff0000 | |
| unsignedByteToInt | back to summary |
|---|---|
| protected static int unsignedByteToInt(byte b) | |
| Modifier and Type | Field and Description |
|---|---|
| public boolean | convertObjectToTileSpace
Whether to convert the objects' pixel position and size to the equivalent in tile space. |
| public boolean | flipY
Whether to flip all Y coordinates so that Y positive is up. |
| public boolean | forceTextureFilters
force texture filters? |
| public boolean | generateMipMaps
generate mipmaps? |
| public String | projectFilePath
Path to Tiled project file. |
| public Texture. | textureMagFilter
The TextureFilter to use for magnification |
| public Texture. | textureMinFilter
The TextureFilter to use for minification |
| Access | Constructor and Description |
|---|---|
| public |
| convertObjectToTileSpace | back to summary |
|---|---|
| public boolean convertObjectToTileSpace Whether to convert the objects' pixel position and size to the equivalent in tile space. | |
| flipY | back to summary |
|---|---|
| public boolean flipY Whether to flip all Y coordinates so that Y positive is up. All libGDX renderers require flipped Y coordinates, and thus flipY set to true. This parameter is included for non-rendering related purposes of TMX files, or custom renderers. | |
| forceTextureFilters | back to summary |
|---|---|
| public boolean forceTextureFilters force texture filters? | |
| generateMipMaps | back to summary |
|---|---|
| public boolean generateMipMaps generate mipmaps? | |
| projectFilePath | back to summary |
|---|---|
| public String projectFilePath Path to Tiled project file. Needed when using class properties. | |
| textureMagFilter | back to summary |
|---|---|
| public Texture. The TextureFilter to use for magnification | |
| textureMinFilter | back to summary |
|---|---|
| public Texture. The TextureFilter to use for minification | |
| Parameters | back to summary |
|---|---|
| public Parameters() | |
nametype like string, int, ...propertyType for class and enum types to refer to a specific class/enumdefaultValue| Modifier and Type | Field and Description |
|---|---|
| public JsonValue | |
| public String | |
| public String | |
| public String |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public String |
| defaultValue | back to summary |
|---|---|
| public JsonValue defaultValue | |
| name | back to summary |
|---|---|
| public String name | |
| propertyType | back to summary |
|---|---|
| public String propertyType | |
| type | back to summary |
|---|---|
| public String type | |
| ProjectClassMember | back to summary |
|---|---|
| protected ProjectClassMember() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |