public class Particle extends MovableWorldObject
| Modifier and Type | Field and Description |
|---|---|
protected BoundBox |
boundingBox |
protected boolean |
dead |
protected int |
life |
protected int |
maxLife |
collidedHor, collidedVert, motionX, motionY, onGround, world, x, y| Constructor and Description |
|---|
Particle(IWorld world,
double x,
double y,
double motionX,
double motionY,
int maxLife) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyMotion() |
BoundBox |
getBoundingBox() |
boolean |
isDead() |
void |
render(IGameInstance game,
IAssetManager manager,
org.newdawn.slick.Graphics g,
float x,
float y,
org.newdawn.slick.Color filter) |
void |
setDead() |
void |
update(IGameInstance game) |
move, setPosprotected final BoundBox boundingBox
protected int maxLife
protected int life
protected boolean dead
public Particle(IWorld world, double x, double y, double motionX, double motionY, int maxLife)
public BoundBox getBoundingBox()
getBoundingBox in class MovableWorldObjectpublic void update(IGameInstance game)
protected void applyMotion()
public void render(IGameInstance game, IAssetManager manager, org.newdawn.slick.Graphics g, float x, float y, org.newdawn.slick.Color filter)
public boolean isDead()
public void setDead()