Class TileData
java.lang.Object
de.gurkenlabs.litiengine.environment.tilemap.xml.TileData
public class TileData
extends java.lang.Object
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TileData.Compression
static class
TileData.Encoding
Constructor Summary
Method Summary
Modifier and Type Method Description static java.lang.String
encode(TileData data)
java.lang.String
getCompression()
java.lang.String
getEncoding()
protected int
getHeight()
protected int
getOffsetX()
protected int
getOffsetY()
java.util.List<Tile>
getTiles()
java.lang.String
getValue()
protected int
getWidth()
protected boolean
isInfinite()
protected static java.util.List<Tile>
parseBase64Data(java.lang.String value, java.lang.String compression)
protected static java.util.List<Tile>
parseCsvData(java.lang.String value)
void
setCompression(java.lang.String compression)
void
setEncoding(java.lang.String encoding)
protected void
setMinChunkOffsets(int x, int y)
void
setValue(java.lang.String value)
Constructor Details
TileData
public TileData()Instantiates a newTileData
instance.TileData
public TileData(java.util.List<Tile> tiles, int width, int height, java.lang.String encoding, java.lang.String compression) throws TmxException- Throws:
TmxException
Method Details
getEncoding
public java.lang.String getEncoding()getCompression
public java.lang.String getCompression()getValue
public java.lang.String getValue()setEncoding
public void setEncoding(java.lang.String encoding)setCompression
public void setCompression(java.lang.String compression)setValue
public void setValue(java.lang.String value)getTiles
encode
- Throws:
java.io.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 java.util.List<Tile> parseBase64Data(java.lang.String value, java.lang.String compression) throws InvalidTileLayerException- Throws:
InvalidTileLayerException
parseCsvData
protected static java.util.List<Tile> parseCsvData(java.lang.String value) throws InvalidTileLayerException- Throws:
InvalidTileLayerException