public class Particle extends MovableWorldObject
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
dead |
protected int |
life |
protected int |
maxLife |
collidedHor, collidedVert, currentBounds, lastTickX, lastTickY, motionX, motionY, onGround, world| 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() |
float |
getHeight() |
ResourceName |
getRenderShader(IGameInstance game,
IAssetManager manager,
IRenderer g) |
float |
getWidth() |
boolean |
isDead() |
void |
render(IGameInstance game,
IAssetManager manager,
IRenderer g,
float x,
float y,
int filter) |
void |
setDead() |
void |
update(IGameInstance game) |
canCollideWithTile, getLerpedX, getLerpedY, getOriginX, getOriginY, getX, getY, move, onEntityCollision, onEntityIntersection, onPositionReset, onTileCollision, onTileIntersection, resetBounds, setBounds, setBoundsOrigin, setPospublic Particle(IWorld world, double x, double y, double motionX, double motionY, int maxLife)
public void update(IGameInstance game)
protected void applyMotion()
public void render(IGameInstance game, IAssetManager manager, IRenderer g, float x, float y, int filter)
public ResourceName getRenderShader(IGameInstance game, IAssetManager manager, IRenderer g)
public boolean isDead()
public void setDead()
public float getWidth()
getWidth in class MovableWorldObjectpublic float getHeight()
getHeight in class MovableWorldObject