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:
com.badlogic.gdx.utils.Disposable
,com.esotericsoftware.kryo.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
draw
(com.badlogic.gdx.graphics.g2d.Batch batch) void
drawOpaque
(com.badlogic.gdx.graphics.g2d.Batch batch) boolean
void
setup()
Произвести начальную настройку системы.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
Произвести начальную настройку системы. На момент вызова этого метода, systemProvider содержит объекты всех систем.- 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
public void drawOpaque(com.badlogic.gdx.graphics.g2d.Batch batch) -
draw
public void draw(com.badlogic.gdx.graphics.g2d.Batch batch) -
dispose
public void dispose()Description copied from interface:com.badlogic.gdx.utils.Disposable
Releases all resources of this object.- Specified by:
dispose
in interfacecom.badlogic.gdx.utils.Disposable
- Overrides:
dispose
in classGameSystem
-