Class CollisionMap

java.lang.Object
games.stendhal.common.CollisionMap

public class CollisionMap extends Object
  • Constructor Details

    • CollisionMap

      public CollisionMap(int width, int height)
    • CollisionMap

      public CollisionMap(LayerDefinition layer)
  • Method Details

    • getWidth

      public int getWidth()
    • getHeight

      public int getHeight()
    • get

      public boolean get(int i, int j)
    • set

      public void set(int i, int j)
    • collides

      public boolean collides(int x, int y, int width, int height)
    • clear

      public void clear()
    • create

      public static CollisionMap create(LayerDefinition layer)
    • unset

      public void unset(int i, int k)
    • set

      public void set(Rectangle2D shape)