public class FlixelTileMapReader extends AbstractTileMapReader
Constructor and Description |
---|
FlixelTileMapReader(BufferedImage tileSet,
int tileWidth)
Create a new flixel tile map reader with the specified tile set image.
|
FlixelTileMapReader(File tileSet,
int tileWidth,
int tileHeight,
int frames)
Create a new flixel tile map reader with the specified tile set image file.
|
FlixelTileMapReader(InputStream tileSet,
int tileWidth,
int tileHeight,
int frames)
Create a new flixel tile map reader with the specified tile set image input stream.
|
FlixelTileMapReader(URL tileSet,
int tileWidth,
int tileHeight,
int frames)
Create a new flixel tile map reader with the specified tile set image URL.
|
Modifier and Type | Method and Description |
---|---|
AbstractTileMap |
read(InputStream inputStream)
Read a tile map from the specified input stream.
|
closeQuietly, read, read
public FlixelTileMapReader(BufferedImage tileSet, int tileWidth)
tileSet
- tile set image, must not be nulltileWidth
- tile width in pixelspublic FlixelTileMapReader(InputStream tileSet, int tileWidth, int tileHeight, int frames)
tileSet
- tile set image input stream, must not be nulltileWidth
- tile width in pixelstileHeight
- tile height in pixelsframes
- number of framespublic FlixelTileMapReader(File tileSet, int tileWidth, int tileHeight, int frames)
tileSet
- tile set image file, must not be nulltileWidth
- tile width in pixelstileHeight
- tile height in pixelsframes
- number of framespublic FlixelTileMapReader(URL tileSet, int tileWidth, int tileHeight, int frames)
tileSet
- tile set image URL, must not be nulltileWidth
- tile width in pixelstileHeight
- tile height in pixelsframes
- number of framespublic AbstractTileMap read(InputStream inputStream) throws IOException
TileMapReader
inputStream
- input stream to read from, must not be nullIOException
- if an IO error occursCopyright (c) 2006-2013 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).