Class SpriteParticle
java.lang.Object
de.gurkenlabs.litiengine.graphics.emitters.particles.Particle
de.gurkenlabs.litiengine.graphics.emitters.particles.SpriteParticle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBoundingBox(Point2D origin) Gets the current bounding box of the particle, depending on its spawn location.booleanbooleanvoidrender(Graphics2D g, Point2D emitterOrigin) setAnimateSprite(boolean animateSprite) setLoopSprite(boolean loopSprite) voidUpdates the effect's position, change in xCurrent, change in yCurrent, remaining lifetime, and color.Methods inherited from class de.gurkenlabs.litiengine.graphics.emitters.particles.Particle
getAbsoluteLocation, getAbsoluteX, getAbsoluteY, getAccelerationX, getAccelerationY, getAliveTime, getAngle, getCollisionType, getColor, getCustomRenderType, getDeltaAngle, getDeltaHeight, getDeltaWidth, getHeight, getOpacity, getOutlineThickness, getRenderLocation, getTimeToLive, getVelocityX, getVelocityY, getWidth, getX, getY, hasRayCastCollision, init, isAntiAliased, isContinuousCollisionEnabled, isFading, isFadingOnCollision, isOutlineOnly, isStoppingOnCollision, setAccelerationX, setAccelerationY, setAngle, setAntiAliasing, setCollisionType, setColor, setContinuousCollision, setCustomRenderType, setDeltaAngle, setDeltaHeight, setDeltaWidth, setFade, setFadeOnCollision, setHeight, setOutlineOnly, setOutlineThickness, setStopOnCollision, setTimeToLive, setVelocityX, setVelocityY, setWidth, setX, setY, timeToLiveReached, usesCustomRenderType
-
Constructor Details
-
SpriteParticle
-
-
Method Details
-
render
-
update
Description copied from class:ParticleUpdates the effect's position, change in xCurrent, change in yCurrent, remaining lifetime, and color. -
getBoundingBox
Description copied from class:ParticleGets the current bounding box of the particle, depending on its spawn location.- Overrides:
getBoundingBoxin classParticle- Parameters:
origin- the spawn location of this particle- Returns:
- The Rectangular particle bounding box.
-
isAnimatingSprite
public boolean isAnimatingSprite() -
setAnimateSprite
-
isLoopingSprite
public boolean isLoopingSprite() -
setLoopSprite
-