T
- Tile type used.public final class LevelRipConverter<T extends TileGame<?>> extends 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 !"); } }
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
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(Media levelrip,
MapTileGame<?,T> map,
Media patternsDirectory)
Must be called to start conversion.
|
activeCount, checkAccess, clone, 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(Media levelrip, MapTileGame<?,T> map, 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()
Copyright © 2014 Byron 3D Games Studio. All rights reserved.