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 classes/interfaces inherited from class com.prineside.tdi2.Shape
Shape.Factory<T extends Shape>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
draw
(com.badlogic.gdx.graphics.g2d.Batch batch) void
free()
com.badlogic.gdx.graphics.Color
getColor()
boolean
void
reset()
Resets the object for reuse.void
setColor
(float r, float g, float b, float a) void
setColor
(com.badlogic.gdx.graphics.Color color) void
setHeadPosition
(float x, float y) void
setStartPoint
(float x, float y) Собирает все ноды в начальной точкеvoid
setup
(com.badlogic.gdx.graphics.Color color, float thickness, float duration, float segmentLength) void
update
(float deltaTime)
-
Constructor Details
-
TrailMultiLine
public TrailMultiLine()
-
-
Method Details
-
cloneTrail
-
setup
public void setup(com.badlogic.gdx.graphics.Color color, float thickness, float duration, float segmentLength) -
setColor
public void setColor(com.badlogic.gdx.graphics.Color color) -
setColor
public void setColor(float r, float g, float b, float a) -
getColor
public com.badlogic.gdx.graphics.Color getColor() -
setStartPoint
public void setStartPoint(float x, float y) Собирает все ноды в начальной точке -
setHeadPosition
public void setHeadPosition(float x, float y) -
allowCompletion
public void allowCompletion() -
isFinished
public boolean isFinished()- Specified by:
isFinished
in interfaceProjectileTrail
-
update
public void update(float deltaTime) - Specified by:
update
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
-
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
-