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 int
compareTo(IMap map)
java.awt.Color
getBackgroundColor()
java.awt.geom.Rectangle2D
getBounds()
int
getHeight()
Gets the map height in tiles.int
getHexSideLength()
Gets the straight edges' length for hexagonal maps.java.lang.String
getName()
int
getNextLayerId()
int
getNextObjectId()
IMapOrientation
getOrientation()
Gets the orientation.java.net.URL
getPath()
RenderOrder
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 axisStaggerIndex
getStaggerIndex()
Gets the tile size.java.lang.String
getTiledVersion()
int
getTileHeight()
Gets the vertical tile size.ITilesetEntry
getTilesetEntry(int gid)
java.util.List<ITileset>
getTilesets()
Gets the tilesets.java.awt.Dimension
getTileSize()
Gets the tile size.int
getTileWidth()
Gets the horizontal tile size.double
getVersion()
Gets the version.int
getWidth()
Gets the map width in tiles.boolean
isInfinite()
void
setName(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, setValue
Methods 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:
compareTo
in interfacejava.lang.Comparable<IMap>