Package com.prineside.tdi2.shapes
Class FlyingParticlesLine
java.lang.Object
com.prineside.tdi2.Shape
com.prineside.tdi2.shapes.FlyingParticlesLine
- All Implemented Interfaces:
Pool.Poolable
,ProjectileTrail
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.prineside.tdi2.Shape
Shape.Factory<T extends Shape>
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
free()
boolean
void
reset()
Resets the object for reuse.void
setup
(float startX, float startY, float endX, float endY, TextureRegion texture, float textureWidth, float textureHeight, float particleRotation, float lineWidth, Color startColor, Color endColor, float particleDistance, float duration, float density, ParticleEmitter.ScaledNumericValue alphaScale) void
update
(float deltaTime)
-
Method Details
-
setup
public void setup(float startX, float startY, float endX, float endY, TextureRegion texture, float textureWidth, float textureHeight, float particleRotation, float lineWidth, Color startColor, Color endColor, float particleDistance, float duration, float density, ParticleEmitter.ScaledNumericValue alphaScale) -
update
public void update(float deltaTime) - Specified by:
update
in interfaceProjectileTrail
-
isFinished
public boolean isFinished()- Specified by:
isFinished
in interfaceProjectileTrail
-
draw
- Specified by:
draw
in interfaceProjectileTrail
- Specified by:
draw
in classShape
-
reset
public void reset()Description copied from interface:com.badlogic.gdx.utils.Pool.Poolable
Resets the object for reuse. Object references should be nulled and fields may be set to default values.- Specified by:
reset
in interfacePool.Poolable
-
free
public void free()- Specified by:
free
in interfaceProjectileTrail
-