public class Particle extends MovableWorldObject
| Modifier and Type | Field | Description |
|---|---|---|
protected boolean |
dead |
|
protected int |
life |
|
protected int |
maxLife |
collidedHor, collidedVert, currentBounds, 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() |
|
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, move, onEntityCollision, onEntityIntersection, onTileCollision, onTileIntersection, setPos, updateBoundspublic 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