Interface IMapObject

All Superinterfaces:
Comparable<Resource>, ICustomPropertyProvider, Resource
All Known Implementing Classes:
Blueprint, MapObject

public interface IMapObject extends ICustomPropertyProvider, Resource
This interface represents an instance on a map that can define various things for an engine. e.g. it can be used to define static collision boxes or other special regions on the map.
  • Method Details

    • getGridId

      int getGridId()
      Gets the grid id.
      Returns:
      the grid id
    • getTile

      ITilesetEntry getTile()
    • getBoundingBox

      Rectangle2D getBoundingBox()
      Gets the hit box.
      Returns:
      the hit box
    • getId

      int getId()
      Gets the id.
      Returns:
      the id
    • getLocation

      Point2D getLocation()
      Gets the location.
      Returns:
      the location
    • getType

      String getType()
    • getPolyline

      IPolyShape getPolyline()
    • getPolygon

      IPolyShape getPolygon()
    • getEllipse

      Ellipse2D getEllipse()
    • getText

      IMapObjectText getText()
    • getLayer

      IMapObjectLayer getLayer()
    • setGridId

      void setGridId(int gid)
    • setId

      void setId(int id)
    • setType

      void setType(String type)
    • setX

      void setX(float x)
    • setY

      void setY(float y)
    • setLocation

      void setLocation(Point2D location)
    • setLocation

      void setLocation(float x, float y)
    • setWidth

      void setWidth(float width)
    • setHeight

      void setHeight(float height)
    • getX

      float getX()
    • getY

      float getY()
    • getWidth

      float getWidth()
    • getHeight

      float getHeight()
    • isPolyline

      boolean isPolyline()
    • isPolygon

      boolean isPolygon()
    • isPoint

      boolean isPoint()
    • isEllipse

      boolean isEllipse()
    • setPolyline

      void setPolyline(IPolyShape polyline)
    • setPolygon

      void setPolygon(IPolyShape polygon)