Package com.prineside.tdi2.shapes
Class TrailMultiLine
java.lang.Object
com.prineside.tdi2.Shape
com.prineside.tdi2.shapes.TrailMultiLine
- 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>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
free()
getColor()
boolean
void
reset()
Resets the object for reuse.void
setColor
(float r, float g, float b, float a) void
void
setHeadPosition
(float x, float y) void
setHeadPositionAndAngle
(float x, float y, float angle) void
setStartPoint
(float x, float y) Собирает все ноды в начальной точкеvoid
void
update
(float deltaTime)
-
Constructor Details
-
TrailMultiLine
public TrailMultiLine()
-
-
Method Details
-
cloneTrail
-
setup
-
setColor
-
setColor
public void setColor(float r, float g, float b, float a) -
getColor
-
setStartPoint
public void setStartPoint(float x, float y) Собирает все ноды в начальной точке -
setHeadPositionAndAngle
public void setHeadPositionAndAngle(float x, float y, float angle) -
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
- 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 interfacePool.Poolable
-