public class Explosion extends AbstractEntity
GAME_DIAGLENGTH, GAME_DIAGLENGTH2, GAME_EDGELENGTH, GAME_EDGELENGTH2, OBJECTTYPESNUM, VALUESNUM, VIEW_DEPTH, VIEW_DEPTH2, VIEW_DEPTH4, VIEW_HEIGHT, VIEW_HEIGHT2, VIEW_HEIGHT4, VIEW_WIDTH, VIEW_WIDTH2, VIEW_WIDTH4, ZAXISSHORTENING
Constructor and Description |
---|
Explosion()
simple explosion without screen shake.
|
Explosion(int radius,
byte damage,
Camera camera) |
Modifier and Type | Method and Description |
---|---|
AbstractEntity |
spawn(Point point)
explodes
|
void |
update(float dt)
Updates the logic of the object.
|
disableShadow, dispose, disposeFromMap, enableShadow, getAnimation, getCategory, getDimensionZ, getName, getPosition, getRegisteredEntities, isGettingSaved, isInMemoryArea, isObstacle, isOnGround, isTransparent, registerEngineEntities, registerEntity, setAnimation, setDimensionZ, setHeight, setName, setObstacle, setPosition, setSaveToDisk, setTransparent, shouldBeDisposed, shouldBeDisposedFromMap, spawned
getAtlasRegion, getColor, getCoreData, getDepth, getDrawCalls, getHealth, getId, getLightlevel, getPixmap, getRotation, getScaling, getSprite, getSpriteId, getSprites, getSpritesheet, getSpritesheetPath, getTextureDiffuse, getTextureNormal, getValue, increaseDrawCalls, isHidden, loadSheet, render, render, render, render, resetDrawCalls, setColor, setCustomSpritesheet, setGraphicsId, setHealth, setHidden, setLightlevel, setRotation, setScaling, setValue, staticDispose
public Explosion()
public Explosion(int radius, byte damage, Camera camera)
radius
- the radius in game world blocksdamage
- [0;100]camera
- can be null. used for screen shakepublic void update(float dt)
AbstractEntity
update
in class AbstractEntity
dt
- time since last updatepublic AbstractEntity spawn(Point point)
spawn
in class AbstractEntity
point
- the point in the game world where the object is