Class TileData
java.lang.Object
de.gurkenlabs.litiengine.environment.tilemap.xml.TileData
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringprotected intprotected intprotected intgetTiles()getValue()protected intgetWidth()protected booleanparseBase64Data(String value, String compression) parseCsvData(String value) voidsetCompression(String compression) voidsetEncoding(String encoding) protected voidsetMinChunkOffsets(int x, int y) void
-
Constructor Details
-
TileData
public TileData()Instantiates a newTileDatainstance. -
TileData
public TileData(List<Tile> tiles, int width, int height, String encoding, String compression) throws TmxException - Throws:
TmxException
-
-
Method Details
-
getEncoding
-
getCompression
-
getValue
-
setEncoding
-
setCompression
-
setValue
-
getTiles
-
encode
- Throws:
IOException
-
setMinChunkOffsets
protected void setMinChunkOffsets(int x, int y) -
isInfinite
protected boolean isInfinite() -
getWidth
protected int getWidth() -
getHeight
protected int getHeight() -
getOffsetX
protected int getOffsetX() -
getOffsetY
protected int getOffsetY() -
parseBase64Data
protected static List<Tile> parseBase64Data(String value, String compression) throws InvalidTileLayerException - Throws:
InvalidTileLayerException
-
parseCsvData
- Throws:
InvalidTileLayerException
-