public class Map extends AbstractPathMap<Tile>
collisions, fact, heightInTile, screenHeight, theme, tileHeight, tileWidth, widthInTile
DIR
Modifier and Type | Method and Description |
---|---|
Tile |
createTile(int pattern,
int number,
int x,
int y,
java.lang.String collision) |
void |
load(FileReader file)
Load a map from a specified file as binary data.
|
void |
loadXML(XMLNode root)
Load a map from a specified file as xml.
|
void |
save(FileWriter file)
Save map to specified file as binary data.
|
void |
saveXML(XMLNode root)
Save map to specified file as xml.
|
blocked, create, getCost, getRef, getTileArroundUntil, pathFinderVisited, renderTile, setRef
getCollision, getHeightInTiles, getPattern, getPatterns, getPatternsNumber, getTheme, getTile, getTileHeight, getTilesNumber, getTileWidth, getWidthInTiles, loadPatterns, readCollisions, render, render, render, renderTile, setTile
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHeightInTiles, getPatternsNumber, getTile, getTileHeight, getTileWidth, getWidthInTiles, renderTile
public Map(World world)
public Tile createTile(int pattern, int number, int x, int y, java.lang.String collision)
createTile
in class AbstractTileMap<Tile>
public void save(FileWriter file) throws java.io.IOException
AbstractTileMap
save
in class AbstractTileMap<Tile>
file
- output file.java.io.IOException
- thrown in case of output error.public void saveXML(XMLNode root)
AbstractTileMap
saveXML
in class AbstractTileMap<Tile>
root
- output node.public void loadXML(XMLNode root)
AbstractTileMap
loadXML
in class AbstractPathMap<Tile>
root
- input node.public void load(FileReader file) throws java.io.IOException
AbstractTileMap
load
in class AbstractTileMap<Tile>
file
- input file.java.io.IOException
- thrown in case of output error.