public class Explosion extends AbstractEntity
GAME_DIAGLENGTH, GAME_DIAGLENGTH2, GAME_EDGELENGTH, GAME_EDGELENGTH2, OBJECTTYPESNUM, SCREEN_DEPTH, SCREEN_DEPTH2, SCREEN_DEPTH4, SCREEN_HEIGHT, SCREEN_HEIGHT2, SCREEN_HEIGHT4, SCREEN_WIDTH, SCREEN_WIDTH2, SCREEN_WIDTH4, VALUESNUM
Modifier and Type | Method and Description |
---|---|
AbstractEntity |
spawn(Point point)
explodes
|
void |
update(float delta)
Updates the logic of the object.
|
dispose, getCategory, getDimensionZ, getName, getPosition, isOnGround, render, save, setDimensionZ, setHeight, setPosition, shouldBeDisposed, spawned
getDrawCalls, getHealth, getId, getLightlevel, getPixmap, getRotation, getSprite, getSpriteId, getSprites, getSpritesheet, getValue, increaseDrawCalls, isHidden, isObstacle, isTransparent, loadSheet, render, render, render, render, render, render, render, resetDrawCalls, setGraphicsId, setHealth, setHidden, setLightlevel, setObstacle, setRotation, setTransparent, setValue, staticDispose, updateStaticUpdates
public Explosion(int radius, Camera camera)
radius
- the radius in game world blockscamera
- can be null. used for screen shakepublic void update(float delta)
AbstractEntity
update
in class AbstractEntity
delta
- time since last updatepublic AbstractEntity spawn(Point point)
spawn
in class AbstractEntity