public final class Map extends CustomPropertyProvider implements IMap, java.io.Serializable, java.lang.Comparable<Map>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FILE_EXTENSION |
| Constructor and Description |
|---|
Map() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMapObjectLayer(IMapObjectLayer layer) |
void |
addMapObjectLayer(int index,
IMapObjectLayer layer) |
int |
compareTo(Map o) |
java.awt.Color |
getBackgroundColor() |
java.awt.geom.Rectangle2D |
getBounds() |
protected int |
getChunkOffsetX() |
protected int |
getChunkOffsetY() |
java.util.List<Tileset> |
getExternalTilesets() |
int |
getHeight() |
int |
getHexSideLength()
Gets the straight edges' length for hexagonal maps.
|
java.util.List<IImageLayer> |
getImageLayers()
Gets the image layers.
|
IMapObject |
getMapObject(int mapId) |
IMapObjectLayer |
getMapObjectLayer(IMapObject mapObject) |
java.util.List<IMapObjectLayer> |
getMapObjectLayers()
Gets the shape layers.
|
java.util.Collection<IMapObject> |
getMapObjects() |
java.util.Collection<IMapObject> |
getMapObjects(java.lang.String... types) |
java.lang.String |
getName() |
int |
getNextObjectId()
Gets the next object id.
|
MapOrientation |
getOrientation()
Gets the orientation.
|
java.lang.String |
getPath() |
protected java.util.List<ImageLayer> |
getRawImageLayers() |
protected java.util.List<MapObjectLayer> |
getRawMapObjectLayers() |
java.util.List<TileLayer> |
getRawTileLayers() |
java.util.List<Tileset> |
getRawTilesets() |
java.util.List<ILayer> |
getRenderLayers() |
java.lang.String |
getRenderOrder()
Gets the renderorder.
|
java.awt.Dimension |
getSizeInPixels()
Gets the size in pixels.
|
java.awt.Dimension |
getSizeInTiles()
Gets the sizein tiles.
|
StaggerAxis |
getStaggerAxis()
Gets the staggering axis
|
StaggerIndex |
getStaggerIndex()
Gets the tile size.
|
java.lang.String |
getTiledVersion() |
int |
getTileHeight()
Gets the vertical tile size.
|
java.util.List<ITileLayer> |
getTileLayers()
Gets the tile layers.
|
java.util.List<ITileset> |
getTilesets()
Gets the tilesets.
|
java.awt.Shape |
getTileShape(int tileX,
int tileY)
Gets the shape of the tile [X|Y] at its absolute location.
|
java.awt.Dimension |
getTileSize()
Gets the tile size.
|
int |
getTileWidth()
Gets the horizontal tile size.
|
double |
getVersion()
Gets the version.
|
int |
getWidth() |
boolean |
isInfinite() |
void |
removeMapObject(int mapId) |
void |
removeMapObjectLayer(IMapObjectLayer layer) |
void |
removeMapObjectLayer(int index) |
void |
setHeight(int height) |
void |
setHexSideLength(int hexSideLength) |
void |
setName(java.lang.String name)
Sets the name.
|
void |
setOrientation(java.lang.String orientation) |
void |
setPath(java.lang.String path) |
void |
setRenderorder(java.lang.String renderorder) |
void |
setStaggerAxis(java.lang.String staggerAxis) |
void |
setStaggerIndex(java.lang.String staggerIndex) |
void |
setTiledVersion(java.lang.String tiledversion) |
void |
setTileHeight(int tileheight) |
void |
setTileWidth(int tilewidth) |
void |
setVersion(double version) |
void |
setWidth(int width) |
void |
updateTileTerrain() |
getBoolValue, getBoolValue, getByteValue, getByteValue, getColorValue, getColorValue, getDoubleValue, getDoubleValue, getEnumValue, getEnumValue, getFloatValue, getFloatValue, getIntValue, getIntValue, getLongValue, getLongValue, getProperties, getShortValue, getShortValue, getStringValue, getStringValue, hasCustomProperty, setProperties, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBoolValue, getBoolValue, getByteValue, getByteValue, getColorValue, getColorValue, getDoubleValue, getDoubleValue, getEnumValue, getEnumValue, getFloatValue, getFloatValue, getIntValue, getIntValue, getLongValue, getLongValue, getProperties, getShortValue, getShortValue, getStringValue, getStringValue, hasCustomProperty, setProperties, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValuepublic static final java.lang.String FILE_EXTENSION
public java.util.List<IImageLayer> getImageLayers()
IMapgetImageLayers in interface IMappublic int getNextObjectId()
getNextObjectId in interface IMappublic MapOrientation getOrientation()
IMapgetOrientation in interface IMappublic java.lang.String getRenderOrder()
IMapgetRenderOrder in interface IMappublic java.util.List<IMapObjectLayer> getMapObjectLayers()
IMapgetMapObjectLayers in interface IMappublic IMapObjectLayer getMapObjectLayer(IMapObject mapObject)
getMapObjectLayer in interface IMappublic void removeMapObject(int mapId)
removeMapObject in interface IMappublic java.awt.Dimension getSizeInPixels()
IMapgetSizeInPixels in interface IMappublic java.awt.Dimension getSizeInTiles()
IMapgetSizeInTiles in interface IMappublic java.util.List<ITileLayer> getTileLayers()
IMapgetTileLayers in interface IMappublic java.util.List<ITileset> getTilesets()
IMapgetTilesets in interface IMappublic java.awt.Dimension getTileSize()
IMapgetTileSize in interface IMappublic int getTileWidth()
IMapgetTileWidth in interface IMappublic int getTileHeight()
IMapgetTileHeight in interface IMappublic java.awt.Shape getTileShape(int tileX,
int tileY)
IMapgetTileShape in interface IMaptileX - the horizontal grid index of the tiletileY - the vertical grid index of the tilepublic double getVersion()
IMapgetVersion in interface IMappublic java.lang.String getTiledVersion()
getTiledVersion in interface IMappublic void setName(java.lang.String name)
IMappublic java.util.Collection<IMapObject> getMapObjects(java.lang.String... types)
getMapObjects in interface IMappublic java.util.Collection<IMapObject> getMapObjects()
getMapObjects in interface IMappublic IMapObject getMapObject(int mapId)
getMapObject in interface IMappublic int getHexSideLength()
IMapgetHexSideLength in interface IMappublic StaggerAxis getStaggerAxis()
IMapgetStaggerAxis in interface IMappublic StaggerIndex getStaggerIndex()
IMapgetStaggerIndex in interface IMappublic void setPath(java.lang.String path)
public void updateTileTerrain()
public void addMapObjectLayer(IMapObjectLayer layer)
addMapObjectLayer in interface IMappublic void addMapObjectLayer(int index,
IMapObjectLayer layer)
addMapObjectLayer in interface IMappublic void removeMapObjectLayer(IMapObjectLayer layer)
removeMapObjectLayer in interface IMappublic void removeMapObjectLayer(int index)
removeMapObjectLayer in interface IMappublic void setHeight(int height)
public void setOrientation(java.lang.String orientation)
public void setRenderorder(java.lang.String renderorder)
public void setTiledVersion(java.lang.String tiledversion)
public void setTileHeight(int tileheight)
public void setTileWidth(int tilewidth)
public void setHexSideLength(int hexSideLength)
public void setStaggerAxis(java.lang.String staggerAxis)
public void setStaggerIndex(java.lang.String staggerIndex)
public void setVersion(double version)
public void setWidth(int width)
public int compareTo(Map o)
compareTo in interface java.lang.Comparable<Map>public java.util.List<ILayer> getRenderLayers()
getRenderLayers in interface IMappublic java.util.List<Tileset> getExternalTilesets()
public java.util.List<Tileset> getRawTilesets()
public java.awt.Color getBackgroundColor()
getBackgroundColor in interface IMappublic java.util.List<TileLayer> getRawTileLayers()
public boolean isInfinite()
isInfinite in interface IMapprotected java.util.List<ImageLayer> getRawImageLayers()
protected java.util.List<MapObjectLayer> getRawMapObjectLayers()
protected int getChunkOffsetX()
protected int getChunkOffsetY()