Package com.prineside.tdi2.shapes
Class FlyingParticlesLine
java.lang.Object
com.prineside.tdi2.Shape
com.prineside.tdi2.shapes.FlyingParticlesLine
- All Implemented Interfaces:
com.badlogic.gdx.utils.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 TypeMethodDescriptionvoiddraw(com.badlogic.gdx.graphics.g2d.Batch batch) voidfree()intID инстанса хвоста, чтобы проверять, не был ли он выдан заново кому-то Меняется setup()booleanvoidreset()Resets the object for reuse.voidsetup(float startX, float startY, float endX, float endY, com.badlogic.gdx.graphics.g2d.TextureRegion texture, float textureWidth, float textureHeight, float particleRotation, float lineWidth, com.badlogic.gdx.graphics.Color startColor, com.badlogic.gdx.graphics.Color endColor, float particleDistance, float duration, float density, com.badlogic.gdx.graphics.g2d.ParticleEmitter.ScaledNumericValue alphaScale) voidupdate(float deltaTime)
-
Method Details
-
setup
public void setup(float startX, float startY, float endX, float endY, com.badlogic.gdx.graphics.g2d.TextureRegion texture, float textureWidth, float textureHeight, float particleRotation, float lineWidth, com.badlogic.gdx.graphics.Color startColor, com.badlogic.gdx.graphics.Color endColor, float particleDistance, float duration, float density, com.badlogic.gdx.graphics.g2d.ParticleEmitter.ScaledNumericValue alphaScale) -
update
public void update(float deltaTime) - Specified by:
updatein interfaceProjectileTrail
-
isFinished
public boolean isFinished()- Specified by:
isFinishedin interfaceProjectileTrail
-
draw
public void draw(com.badlogic.gdx.graphics.g2d.Batch batch) - Specified by:
drawin interfaceProjectileTrail- Specified by:
drawin classShape
-
reset
public void reset()Description copied from interface:com.badlogic.gdx.utils.Pool.PoolableResets the object for reuse. Object references should be nulled and fields may be set to default values.- Specified by:
resetin interfacecom.badlogic.gdx.utils.Pool.Poolable
-
free
public void free()- Specified by:
freein interfaceProjectileTrail
-
getUsageId
public int getUsageId()Description copied from interface:ProjectileTrailID инстанса хвоста, чтобы проверять, не был ли он выдан заново кому-то Меняется setup()- Specified by:
getUsageIdin interfaceProjectileTrail
-