| Modifier and Type | Field and Description |
|---|---|
boolean |
collidedHor |
boolean |
collidedVert |
double |
motionX |
double |
motionY |
boolean |
onGround |
IWorld |
world |
double |
x |
double |
y |
| Constructor and Description |
|---|
MovableWorldObject(IWorld world) |
| Modifier and Type | Method and Description |
|---|---|
abstract BoundBox |
getBoundingBox() |
void |
move(double motionX,
double motionY) |
void |
onTileCollision(IWorld world,
int x,
int y,
TileLayer layer,
TileState state,
BoundBox myBox,
java.util.List<BoundBox> boxes) |
void |
setPos(double x,
double y) |
public IWorld world
public double x
public double y
public double motionX
public double motionY
public boolean collidedHor
public boolean collidedVert
public boolean onGround
public MovableWorldObject(IWorld world)
public void setPos(double x,
double y)
public void move(double motionX,
double motionY)
public void onTileCollision(IWorld world, int x, int y, TileLayer layer, TileState state, BoundBox myBox, java.util.List<BoundBox> boxes)
public abstract BoundBox getBoundingBox()