Class Explosion
- java.lang.Object
-
- com.badlogic.gdx.graphics.g3d.Renderable
-
- com.bombinggames.wurfelengine.core.gameobjects.AbstractGameObject
-
- com.bombinggames.wurfelengine.core.gameobjects.AbstractEntity
-
- com.bombinggames.wurfelengine.core.gameobjects.Explosion
-
- All Implemented Interfaces:
com.badlogic.gdx.ai.msg.Telegraph
public class Explosion extends AbstractEntity implements com.badlogic.gdx.ai.msg.Telegraph
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.bombinggames.wurfelengine.core.gameobjects.AbstractEntity
colissionRadius
-
Fields inherited from class com.bombinggames.wurfelengine.core.gameobjects.AbstractGameObject
sprite
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhandleMessage(com.badlogic.gdx.ai.msg.Telegram msg)AbstractEntityspawn(Point point)explodesvoidupdate(float dt)Updates the logic of the object.-
Methods inherited from class com.bombinggames.wurfelengine.core.gameobjects.AbstractEntity
addComponent, collidesWith, dispose, getCollidingEntities, getCollidingEntities, getComponents, getComponents, getCoord, getCoveredBlocks, getDimensionZ, getHealth, getLightlevelB, getLightlevelG, getLightlevelR, getMass, getName, getPoint, getPosition, getRegisteredEntities, getSpriteCategory, getSpriteId, getSpriteValue, hasPosition, heal, isIndestructible, isInMemoryArea, isMarkedDS, isOnGround, isSavedPersistent, markAsVisitedDS, registerEngineEntities, registerEntity, removeComponent, removeFromMap, requestChunk, setDamageSounds, setDimensionZ, setHealth, setIndestructible, setLightlevel, setMass, setName, setPosition, setPosition, setSavePersistent, setSpriteCategory, setSpriteId, setSpriteValue, setUseRawDelta, shouldBeDisposed, takeDamage, useRawDelta
-
Methods inherited from class com.bombinggames.wurfelengine.core.gameobjects.AbstractGameObject
getColor, getDepth, getPixmap, getRotation, getScaling, getSprite, getSprite, getSpritesheet, getSpritesheetPath, getTextureDiffuse, getTextureNormal, isHidden, loadSheet, render, render, setColor, setCustomSpritesheet, setHidden, setRotation, setScaling, shouldBeRendered, staticDispose, updateSpriteCache
-
-
-
-
Constructor Detail
-
Explosion
public Explosion()
simple explosion without screen shake. Default radius is 2. Damage 500.
-
Explosion
public Explosion(int radius, int damage, Camera camera)- Parameters:
radius- the radius in game world blocksdamage- Damage at center.camera- can be null. used for screen shake
-
-
Method Detail
-
update
public void update(float dt)
Description copied from class:AbstractEntityUpdates the logic of the object.- Overrides:
updatein classAbstractEntity- Parameters:
dt- time since last update in game time
-
spawn
public AbstractEntity spawn(Point point)
explodes- Overrides:
spawnin classAbstractEntity- Parameters:
point- the point in the game world where the object is. If it was previously set this is ignored.- Returns:
-
handleMessage
public boolean handleMessage(com.badlogic.gdx.ai.msg.Telegram msg)
- Specified by:
handleMessagein interfacecom.badlogic.gdx.ai.msg.Telegraph
-
-