public class CollisionData
extends java.lang.Object
Configurable.getDataCollision(String)
and Collidable.setCollision(CollisionData)
.Configurable
,
Collidable
Constructor and Description |
---|
CollisionData(int offsetX,
int offsetY,
int width,
int height,
boolean mirror)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getHeight()
Get the collision height.
|
int |
getOffsetX()
Get the horizontal collision offset.
|
int |
getOffsetY()
Get the vertical collision offset.
|
int |
getWidth()
Get the collision width.
|
boolean |
hasMirror()
Get the mirror flag.
|
public CollisionData(int offsetX, int offsetY, int width, int height, boolean mirror)
offsetX
- The collision horizontal offset.offsetY
- The collision vertical offset.width
- The collision width.height
- The collision height.mirror
- The mirror flag.public int getOffsetX()
public int getOffsetY()
public int getWidth()
public int getHeight()
public boolean hasMirror()
true
if has mirror, false
else.