public class TiledResource
extends java.lang.Object
A TiledResource is an object of a type that can represent the "top-level" structure of a Tiled file, and may have been read from such a structure by the TiledReader class. For instance, a TiledTileset may have been read from a particular TSX file by the TiledReader class' getTileset() method, and may thus represent the top-level structure of that file. However, a TiledTileset may instead represent a tileset embedded as a lower-level structure in a TMX file.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPath()
Returns the path to the Tiled file from which this resource was read as
the top-level structure, or null if this resource was read as a
lower-level structure (in particular, if it is a TiledTileset that
represents a tileset embedded in a TMX file).
|
public final java.lang.String getPath()