Interface IMap
- All Superinterfaces:
java.lang.Comparable<IMap>,ICustomPropertyProvider,ILayerList
- All Known Implementing Classes:
TmxMap
public interface IMap
extends ILayerList, java.lang.Comparable<IMap>Method Summary
Modifier and Type Method Description default intcompareTo(IMap map)java.awt.ColorgetBackgroundColor()java.awt.geom.Rectangle2DgetBounds()intgetHeight()Gets the map height in tiles.intgetHexSideLength()Gets the straight edges' length for hexagonal maps.java.lang.StringgetName()intgetNextLayerId()intgetNextObjectId()IMapOrientationgetOrientation()Gets the orientation.java.net.URLgetPath()RenderOrdergetRenderOrder()Gets the renderorder.java.awt.DimensiongetSizeInPixels()Gets the size in pixels.java.awt.DimensiongetSizeInTiles()Gets the sizein tiles.StaggerAxisgetStaggerAxis()Gets the staggering axisStaggerIndexgetStaggerIndex()Gets the tile size.java.lang.StringgetTiledVersion()intgetTileHeight()Gets the vertical tile size.ITilesetEntrygetTilesetEntry(int gid)java.util.List<ITileset>getTilesets()Gets the tilesets.java.awt.DimensiongetTileSize()Gets the tile size.intgetTileWidth()Gets the horizontal tile size.doublegetVersion()Gets the version.intgetWidth()Gets the map width in tiles.booleanisInfinite()voidsetName(java.lang.String name)Sets the name.Methods inherited from interface de.gurkenlabs.litiengine.environment.tilemap.ICustomPropertyProvider
getBoolValue, getBoolValue, getByteValue, getByteValue, getColorValue, getColorValue, getCommaSeparatedStringValues, getDoubleValue, getDoubleValue, getEnumValue, getEnumValue, getFileValue, getFileValue, getFloatValue, getFloatValue, getIntValue, getIntValue, getLongValue, getLongValue, getProperties, getProperty, getShortValue, getShortValue, getStringValue, getStringValue, getTypeOfProperty, hasCustomProperty, removeProperty, setProperties, setTypeOfProperty, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueMethods inherited from interface de.gurkenlabs.litiengine.environment.tilemap.ILayerList
addLayer, addLayer, getGroupLayers, getImageLayers, getMapObject, getMapObjectLayer, getMapObjectLayer, getMapObjectLayer, getMapObjectLayers, getMapObjects, getMapObjects, getMapObjects, getRenderLayers, getTileLayers, removeLayer, removeLayer, removeMapObject
Method Details
getTilesets
java.util.List<ITileset> getTilesets()Gets the tilesets.- Returns:
- the tilesets
getTilesetEntry
getOrientation
IMapOrientation getOrientation()Gets the orientation.- Returns:
- the orientation
getPath
java.net.URL getPath()getRenderOrder
RenderOrder getRenderOrder()Gets the renderorder.- Returns:
- the renderorder
getSizeInPixels
java.awt.Dimension getSizeInPixels()Gets the size in pixels.- Returns:
- the size in pixels
getWidth
int getWidth()Gets the map width in tiles.- Returns:
- the width in tiles
getHeight
int getHeight()Gets the map height in tiles.- Returns:
- the height in tiles
getSizeInTiles
java.awt.Dimension getSizeInTiles()Gets the sizein tiles.- Returns:
- the sizein tiles
getBounds
java.awt.geom.Rectangle2D getBounds()getTileSize
java.awt.Dimension getTileSize()Gets the tile size.- Returns:
- the tile size
getTileWidth
int getTileWidth()Gets the horizontal tile size.- Returns:
- the horizontal tile size
getTileHeight
int getTileHeight()Gets the vertical tile size.- Returns:
- the vertical tile size
getHexSideLength
int getHexSideLength()Gets the straight edges' length for hexagonal maps.- Returns:
- the hex side length
getStaggerAxis
StaggerAxis getStaggerAxis()Gets the staggering axis- Returns:
- the tile size
getStaggerIndex
StaggerIndex getStaggerIndex()Gets the tile size.- Returns:
- the tile size
getVersion
double getVersion()Gets the version.- Returns:
- the version
getTiledVersion
java.lang.String getTiledVersion()setName
void setName(java.lang.String name)Sets the name.- Parameters:
name- the new name
getName
java.lang.String getName()getNextObjectId
int getNextObjectId()getNextLayerId
int getNextLayerId()getBackgroundColor
java.awt.Color getBackgroundColor()isInfinite
boolean isInfinite()compareTo
- Specified by:
compareToin interfacejava.lang.Comparable<IMap>
