Package com.prineside.tdi2.systems
Class ProjectileTrailSystem
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.GameSystem
com.prineside.tdi2.systems.ProjectileTrailSystem
- All Implemented Interfaces:
Disposable
,KryoSerializable
Освобождает TrailMultiLine обратно в пул, если он не обновляется длительное время (уже не виден, isFinished() возвращает true)
-
Field Summary
Fields inherited from class com.prineside.tdi2.Registrable
S
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addOpaqueTrail
(ProjectileTrail trail) void
addTrail
(ProjectileTrail trail) boolean
void
dispose()
Releases all resources of this object.void
void
drawOpaque
(Batch batch) boolean
void
setup()
Performs the initial configuration of the system.void
updateDraw
(float deltaTime) Methods inherited from class com.prineside.tdi2.GameSystem
getFastStateHash, postSetup, postStateRestore, profileUpdate, update
Methods inherited from class com.prineside.tdi2.Registrable
isRegistered, read, setRegistered, setUnregistered, write
-
Constructor Details
-
ProjectileTrailSystem
public ProjectileTrailSystem()
-
-
Method Details
-
setup
public void setup()Description copied from class:GameSystem
Performs the initial configuration of the system. At the moment of call, systemProvider already contains all objects of systems.- Overrides:
setup
in classGameSystem
-
affectsGameState
public boolean affectsGameState()- Specified by:
affectsGameState
in classGameSystem
-
getSystemName
- Specified by:
getSystemName
in classGameSystem
-
addTrail
-
addOpaqueTrail
-
isEnabled
public boolean isEnabled() -
updateDraw
public void updateDraw(float deltaTime) -
drawOpaque
-
draw
-
dispose
public void dispose()Description copied from interface:com.badlogic.gdx.utils.Disposable
Releases all resources of this object.- Specified by:
dispose
in interfaceDisposable
- Overrides:
dispose
in classGameSystem
-