Package com.prineside.tdi2.systems
Class ParticleSystem
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.GameSystem
com.prineside.tdi2.systems.ParticleSystem
- All Implemented Interfaces:
Disposable
,KryoSerializable
-
Field Summary
Fields inherited from class com.prineside.tdi2.Registrable
S
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addChainLightning
(ChainLightning chainLightning) void
addCoinParticle
(float x, float y, int amount) void
addDamageParticle
(float x, float y, long amount, int efficiency, int dotSourceId) void
addEnemyHitParticle
(Tower tower, Enemy enemy, float damage, Projectile projectile) void
addFlashParticle
(TextureRegion region, float x, float y, float originX, float originY, float width, float height, float rotation) void
addFlashParticleColored
(TextureRegion region, float x, float y, float originX, float originY, float width, float height, float rotation, Color color) void
addLimitedParticle
(ParticleEffect particleEffect, LimitedParticleType limitedParticleType, float x, float y) boolean
addOpaqueParticle
(ParticleEffect particleEffect) void
addOrbParticle
(TextureRegion region, float size, int x1, int y1, int x2, int y2) boolean
addParticle
(ParticleEffect particleEffect, boolean canSkip) void
addRegularShatterParticle
(TextureRegion region, float x, float y, float size, float rotation, float scale) void
addShatterParticle
(TextureRegion region, float x, float y, float size, float rotation, float scale, Color color, Interpolation timeFunction, boolean overParticles) void
addXpOrbParticle
(float xpAmount, int x1, int y1, int x2, int y2) boolean
void
dispose()
Releases all resources of this object.void
void
drawDamageParticles
(Batch batch) static void
freeParticle
(ParticleEffect particleEffect) void
setup()
Performs the initial configuration of the system.void
updateDraw
(float realDetaTime, float inGameDeltaTime) boolean
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
-
ParticleSystem
public ParticleSystem()
-
-
Method Details
-
affectsGameState
public boolean affectsGameState()- Specified by:
affectsGameState
in classGameSystem
-
addFlashParticle
public void addFlashParticle(TextureRegion region, float x, float y, float originX, float originY, float width, float height, float rotation) -
addFlashParticleColored
public void addFlashParticleColored(TextureRegion region, float x, float y, float originX, float originY, float width, float height, float rotation, Color color) -
addRegularShatterParticle
public void addRegularShatterParticle(TextureRegion region, float x, float y, float size, float rotation, float scale) -
addShatterParticle
public void addShatterParticle(TextureRegion region, float x, float y, float size, float rotation, float scale, Color color, @Null Interpolation timeFunction, boolean overParticles) -
addXpOrbParticle
public void addXpOrbParticle(float xpAmount, int x1, int y1, int x2, int y2) -
addOrbParticle
-
addCoinParticle
public void addCoinParticle(float x, float y, int amount) -
addChainLightning
-
addEnemyHitParticle
-
addDamageParticle
public void addDamageParticle(float x, float y, long amount, int efficiency, int dotSourceId) -
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
-
getSystemName
- Specified by:
getSystemName
in classGameSystem
-
freeParticle
-
addLimitedParticle
public void addLimitedParticle(ParticleEffect particleEffect, LimitedParticleType limitedParticleType, float x, float y) -
willParticleBeSkipped
public boolean willParticleBeSkipped() -
addParticle
- Returns:
- true, если партикл добавлен (не скипнут)
-
addOpaqueParticle
-
drawDamageParticles
-
updateDraw
public void updateDraw(float realDetaTime, float inGameDeltaTime) -
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
-