Class EntityShadow
- 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.EntityShadow
-
- All Implemented Interfaces:
Component
public class EntityShadow extends AbstractEntity implements Component
- 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
-
-
Constructor Summary
Constructors Constructor Description EntityShadow()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Deletes the object from the map and every other container.boolean
handleMessage(com.badlogic.gdx.ai.msg.Telegram msg)
void
render(GameView view)
Draws an object if it is not hidden and not clipped.void
setParent(AbstractEntity body)
void
update(float dt)
Updates the logic of the object.-
Methods inherited from class com.bombinggames.wurfelengine.core.gameobjects.AbstractEntity
addComponent, collidesWith, 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, spawn, 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, setColor, setCustomSpritesheet, setHidden, setRotation, setScaling, shouldBeRendered, staticDispose, updateSpriteCache
-
-
-
-
Method Detail
-
update
public void update(float dt)
Description copied from class:AbstractEntity
Updates the logic of the object.- Specified by:
update
in interfaceComponent
- Overrides:
update
in classAbstractEntity
- Parameters:
dt
- time since last update in game time
-
render
public void render(GameView view)
Description copied from class:AbstractGameObject
Draws an object if it is not hidden and not clipped. in game space- Overrides:
render
in classAbstractGameObject
-
handleMessage
public boolean handleMessage(com.badlogic.gdx.ai.msg.Telegram msg)
-
setParent
public void setParent(AbstractEntity body)
-
dispose
public void dispose()
Description copied from class:AbstractEntity
Deletes the object from the map and every other container. The opposite to spawn() but also sets a flag to remove it completely.- Specified by:
dispose
in interfaceComponent
- Overrides:
dispose
in classAbstractEntity
- See Also:
AbstractEntity.shouldBeDisposed()
,AbstractEntity.removeFromMap()
-
-