Package com.prineside.tdi2.shapes
Class TrailMultiLine
java.lang.Object
com.prineside.tdi2.Shape
com.prineside.tdi2.shapes.TrailMultiLine
- 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 TypeMethodDescriptionvoid
draw
(com.badlogic.gdx.graphics.g2d.Batch batch) void
free()
int
ID инстанса хвоста, чтобы проверять, не был ли он выдан заново кому-то Меняется setup()boolean
void
reset()
Resets the object for reuse.void
setAlpha
(float alpha) void
setStartPoint
(float x, float y) Собирает все ноды в начальной точкеvoid
setTexture
(com.badlogic.gdx.graphics.g2d.TextureRegion texture) void
setTexture
(com.badlogic.gdx.graphics.g2d.TextureRegion texture, boolean mirror, boolean flip) void
setup
(com.badlogic.gdx.graphics.Color color, int nodeCount, float nodeInterval, float size) void
update
(float deltaTime) Обновляет время жизни нод и устанавливает флаг окончанияvoid
updateStartPos
(float deltaTime, float x, float y)
-
Method Details
-
setup
public void setup(com.badlogic.gdx.graphics.Color color, int nodeCount, float nodeInterval, float size) -
setTexture
public void setTexture(com.badlogic.gdx.graphics.g2d.TextureRegion texture) -
setTexture
public void setTexture(com.badlogic.gdx.graphics.g2d.TextureRegion texture, boolean mirror, boolean flip) -
setStartPoint
public void setStartPoint(float x, float y) Собирает все ноды в начальной точке -
updateStartPos
public void updateStartPos(float deltaTime, float x, float y) -
setAlpha
public void setAlpha(float alpha) -
update
public void update(float deltaTime) Обновляет время жизни нод и устанавливает флаг окончания- Specified by:
update
in interfaceProjectileTrail
-
isFinished
public boolean isFinished()- Specified by:
isFinished
in interfaceProjectileTrail
-
draw
public void draw(com.badlogic.gdx.graphics.g2d.Batch batch) - Specified by:
draw
in interfaceProjectileTrail
- Specified by:
draw
in classShape
-
free
public void free()- Specified by:
free
in interfaceProjectileTrail
-
getUsageId
public int getUsageId()Description copied from interface:ProjectileTrail
ID инстанса хвоста, чтобы проверять, не был ли он выдан заново кому-то Меняется setup()- Specified by:
getUsageId
in interfaceProjectileTrail
-
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 interfacecom.badlogic.gdx.utils.Pool.Poolable
-