public class Particle extends MovableWorldObject
| Modifier and Type | Field | Description |
|---|---|---|
protected BoundBox |
boundingBox |
|
protected boolean |
dead |
|
protected int |
life |
|
protected int |
maxLife |
collidedHor, collidedVert, motionX, motionY, onGround, world, x, y| Constructor | Description |
|---|---|
Particle(IWorld world,
double x,
double y,
double motionX,
double motionY,
int maxLife) |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
applyMotion() |
|
BoundBox |
getBoundingBox() |
|
IResourceName |
getRenderShader(IGameInstance game,
IAssetManager manager,
IRenderer g) |
|
boolean |
isDead() |
|
void |
render(IGameInstance game,
IAssetManager manager,
IRenderer g,
float x,
float y,
int filter) |
|
void |
setDead() |
|
void |
update(IGameInstance game) |
canCollideWithTile, move, onEntityCollision, onEntityIntersection, onTileCollision, onTileIntersection, 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, IRenderer g, float x, float y, int filter)
public IResourceName getRenderShader(IGameInstance game, IAssetManager manager, IRenderer g)
public boolean isDead()
public void setDead()