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 TypeMethodDescriptionvoidaddOpaqueTrail(ProjectileTrail trail) voidaddTrail(ProjectileTrail trail) booleanvoiddispose()Releases all resources of this object.voidvoiddrawOpaque(Batch batch) booleanvoidsetup()Performs the initial configuration of the system.voidupdateDraw(float deltaTime) Methods inherited from class com.prineside.tdi2.GameSystem
getFastStateHash, postSetup, postStateRestore, profileUpdate, updateMethods 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:GameSystemPerforms the initial configuration of the system. At the moment of call, systemProvider already contains all objects of systems.- Overrides:
setupin classGameSystem
-
affectsGameState
public boolean affectsGameState()- Specified by:
affectsGameStatein classGameSystem
-
getSystemName
- Specified by:
getSystemNamein 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.DisposableReleases all resources of this object.- Specified by:
disposein interfaceDisposable- Overrides:
disposein classGameSystem
-