T
- Tile type used.public final class LevelRipConverter<T extends TileGame<?>>
extends java.lang.Thread
Example:
private void ripLevel(Media levelrip, Media tilesheet, Media output) { final LevelRipConverter<Tile> rip = new LevelRipConverter<>(); rip.start(levelrip, map, tilesheet); try (FileWriting file = File.createFileWriting(output);) { map.save(file); } catch (final IOException exception) { Verbose.exception(World.class, "constructor", exception, "Error on saving map !"); } }
Constructor and Description |
---|
LevelRipConverter()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getErrors()
Get the error counter (number of not found tiles).
|
void |
run() |
void |
start(com.b3dgs.lionengine.core.Media levelrip,
MapTileGame<?,T> map,
com.b3dgs.lionengine.core.Media patternsDirectory)
Must be called to start conversion.
|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public void start(com.b3dgs.lionengine.core.Media levelrip, MapTileGame<?,T> map, com.b3dgs.lionengine.core.Media patternsDirectory)
levelrip
- The file containing the levelrip as an image.map
- The destination map reference.patternsDirectory
- The directory containing tiles themes.public int getErrors()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread