Class CollisionMap

java.lang.Object
org.highlife.api.wrappers.map.impl.CollisionMap
All Implemented Interfaces:
TileMap

public class CollisionMap extends Object implements TileMap
  • Constructor Details

    • CollisionMap

      public CollisionMap(Object reference)
  • Method Details

    • isBlocked

      public static boolean isBlocked(int flag)
    • isCardinalDirectionBlocked

      public static boolean isCardinalDirectionBlocked(int cardinal, int flag, int neighbor)
    • isOrdinalDirectionBlocked

      public static boolean isOrdinalDirectionBlocked(int ordinal, int ne, int nw, int se, int sw)
    • getBaseX

      public int getBaseX()
      Specified by:
      getBaseX in interface TileMap
    • getBaseY

      public int getBaseY()
      Specified by:
      getBaseY in interface TileMap
    • getHeight

      public int getHeight()
      Specified by:
      getHeight in interface TileMap
    • getOffsetX

      @Deprecated public int getOffsetX()
      Deprecated.
    • getOffsetY

      @Deprecated public int getOffsetY()
      Deprecated.
    • getOffset

      @Deprecated public Tile getOffset()
      Deprecated.
    • getWidth

      public int getWidth()
      Specified by:
      getWidth in interface TileMap
    • getFlags

      public int[][] getFlags()
    • getFlag

      public int getFlag(int gridX, int gridY)
      Specified by:
      getFlag in interface TileMap
    • isBlocked

      public boolean isBlocked(int x, int y, int direction)
    • isSolid

      public boolean isSolid(int x, int y)
      Specified by:
      isSolid in interface TileMap
    • isSolid

      public boolean isSolid(int x, int y, int flag)
      Specified by:
      isSolid in interface TileMap
    • getCost

      public float getCost(int sx, int sy, int tx, int ty)
      Specified by:
      getCost in interface TileMap
    • visit

      public void visit(int x, int y)
      Specified by:
      visit in interface TileMap
    • isWalkable

      public boolean isWalkable(int x1, int y1, int x2, int y2)
      Specified by:
      isWalkable in interface TileMap
    • isWalkable

      public boolean isWalkable(int x1, int y1, int x2, int y2, int flag)
      Specified by:
      isWalkable in interface TileMap
    • getDirection

      public int getDirection(int x, int y)
      Specified by:
      getDirection in interface TileMap