Package games.stendhal.common
Class CollisionMap
java.lang.Object
games.stendhal.common.CollisionMap
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
boolean
collides(int x, int y, int width, int height)
static CollisionMap
create(LayerDefinition layer)
boolean
get(int i, int j)
int
int
getWidth()
void
set(int i, int j)
void
set(Rectangle2D shape)
void
unset(int i, int k)
-
Constructor Details
-
CollisionMap
public CollisionMap(int width, int height) -
CollisionMap
-
-
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
-
unset
public void unset(int i, int k) -
set
-