public class TiledParser extends Object
TiledParserListeners of map data| Constructor and Description |
|---|
TiledParser()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(TiledParserListener listener)
Adds a listener to be notified of parsing results
|
void |
parse(com.badlogic.gdx.files.FileHandle fileHandle)
Parses a TMX file and notifies any
TiledParserListeners of parsing results |
public void addListener(TiledParserListener listener)
listener - The TiledParserListener to be addedpublic void parse(com.badlogic.gdx.files.FileHandle fileHandle)
throws IOException
TiledParserListeners of parsing resultsfileHandle - A FileHandle to a TMX file exported from TiledIOException - Thrown if the map file could not be parsedCopyright © 2014. All rights reserved.