Interface IMap

All Superinterfaces:
Comparable<IMap>, ICustomPropertyProvider, ILayerList
All Known Implementing Classes:
TmxMap

public interface IMap extends ILayerList, Comparable<IMap>
  • Method Details

    • getTilesets

      List<ITileset> getTilesets()
      Gets the tilesets.
      Returns:
      the tilesets
    • getTilesetEntry

      ITilesetEntry getTilesetEntry(int gid)
    • getOrientation

      IMapOrientation getOrientation()
      Gets the orientation.
      Returns:
      the orientation
    • getPath

      URL getPath()
    • getRenderOrder

      RenderOrder getRenderOrder()
      Gets the renderorder.
      Returns:
      the renderorder
    • getSizeInPixels

      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

      Dimension getSizeInTiles()
      Gets the sizein tiles.
      Returns:
      the sizein tiles
    • getBounds

      Rectangle2D getBounds()
    • getTileSize

      Dimension getTileSize()
      Gets the tile size.
      Returns:
      the tile size
    • getParallaxOrigin

      Point2D getParallaxOrigin()
      Gets the coordinates of the parallax origin in pixels.
      Returns:
      The parallax origin.
    • 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

      String getTiledVersion()
    • getName

      String getName()
    • setName

      void setName(String name)
      Sets the name.
      Parameters:
      name - the new name
    • getNextObjectId

      int getNextObjectId()
    • getNextLayerId

      int getNextLayerId()
    • getBackgroundColor

      Color getBackgroundColor()
    • isInfinite

      boolean isInfinite()
    • compareTo

      default int compareTo(IMap map)
      Specified by:
      compareTo in interface Comparable<IMap>