Class EntityEmitter
java.lang.Object
de.gurkenlabs.litiengine.entities.Entity
de.gurkenlabs.litiengine.graphics.emitters.Emitter
de.gurkenlabs.litiengine.graphics.emitters.EntityEmitter
- All Implemented Interfaces:
EntityRenderedListener
,EntityRenderListener
,IEntity
,IRenderable
,ITimeToLive
,IUpdateable
,Tweenable
,java.util.EventListener
public class EntityEmitter
extends Emitter
A standard implementation for emitters that are bound to
IEntity.getLocation()
.- See Also:
IEntity.getLocation()
Nested Class Summary
Nested classes/interfaces inherited from class de.gurkenlabs.litiengine.graphics.emitters.Emitter
Emitter.EmitterFinishedListener
Field Summary
Constructor Summary
Constructors Constructor Description EntityEmitter(IEntity entity)
Instantiates a new entity emitter.EntityEmitter(IEntity entity, boolean dynamicLocation)
Instantiates a new entity emitter.EntityEmitter(IEntity entity, EmitterData emitterData)
EntityEmitter(IEntity entity, EmitterData emitterData, boolean dynamicLocation)
EntityEmitter(IEntity entity, java.lang.String emitterXml)
EntityEmitter(IEntity entity, java.lang.String emitterXml, boolean dynamicLocation)
Method Summary
Modifier and Type Method Description IEntity
getEntity()
java.awt.geom.Point2D
getLocation()
boolean
hasDynamicLocation()
Methods inherited from class de.gurkenlabs.litiengine.graphics.emitters.Emitter
activate, addParticle, canTakeNewParticles, createNewParticle, data, deactivate, delete, getAliveTime, getOrigin, getParticles, getRenderable, getTimeToLive, isActivated, isActivateOnInit, isFinished, isPaused, isStopped, onFinished, particleCanBeRemoved, removeFinishedListener, render, setEmitterData, setEmitterData, setPaused, setStopped, spawnParticle, timeToLiveReached, togglePaused, toggleStopped, update
Methods inherited from class de.gurkenlabs.litiengine.entities.Entity
actions, addController, addEntityRenderListener, addListener, addTag, addTransformListener, animations, attachControllers, behavior, canRender, detachControllers, getAngle, getBoundingBox, getCenter, getController, getControllers, getEnvironment, getHeight, getMapId, getName, getProperties, getRenderType, getTags, getTweenValues, getWidth, getX, getY, hasTag, isLoaded, isVisible, loaded, onMessage, onMessage, onRendered, perform, register, removed, removeListener, removeListener, removeListener, removeListener, removeListener, removeTag, rendered, rendering, renderWithLayer, sendMessage, setAngle, setController, setHeight, setLocation, setLocation, setMapId, setName, setRenderType, setRenderWithLayer, setSize, setTweenValues, setVisible, setWidth, setX, setY, toString
Constructor Details
EntityEmitter
EntityEmitter
EntityEmitter
EntityEmitter
EntityEmitter
Instantiates a new entity emitter.- Parameters:
entity
- the entity
EntityEmitter
Instantiates a new entity emitter.- Parameters:
entity
- the entitydynamicLocation
- if true, move the Emitter along with its Entity once it moves. If false, always keep the original Location of the Emitter
Method Details
getEntity
hasDynamicLocation
public boolean hasDynamicLocation()getLocation
public java.awt.geom.Point2D getLocation()- Specified by:
getLocation
in interfaceIEntity
- Overrides:
getLocation
in classEntity