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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChainLightning(ChainLightning chainLightning) voidaddCoinParticle(float x, float y, int amount) voidaddDamageParticle(float x, float y, long amount, int efficiency, int dotSourceId) voidaddEnemyHitParticle(Tower tower, Enemy enemy, float damage, Projectile projectile) voidaddFlashParticle(TextureRegion region, float x, float y, float originX, float originY, float width, float height, float rotation) voidaddFlashParticleColored(TextureRegion region, float x, float y, float originX, float originY, float width, float height, float rotation, Color color) voidaddLimitedParticle(ParticleEffect particleEffect, LimitedParticleType limitedParticleType, float x, float y) booleanaddOpaqueParticle(ParticleEffect particleEffect) voidaddOrbParticle(TextureRegion region, float size, int x1, int y1, int x2, int y2) booleanaddParticle(ParticleEffect particleEffect, boolean canSkip) voidaddRegularShatterParticle(TextureRegion region, float x, float y, float size, float rotation, float scale) voidaddShatterParticle(TextureRegion region, float x, float y, float size, float rotation, float scale, Color color, Interpolation timeFunction, boolean overParticles) voidaddXpOrbParticle(float xpAmount, int x1, int y1, int x2, int y2) booleanvoiddispose()Releases all resources of this object.voidvoiddrawDamageParticles(Batch batch) static voidfreeParticle(ParticleEffect particleEffect) voidsetup()Performs the initial configuration of the system.voidupdateDraw(float realDetaTime, float inGameDeltaTime) booleanMethods 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
-
ParticleSystem
public ParticleSystem()
-
-
Method Details
-
affectsGameState
public boolean affectsGameState()- Specified by:
affectsGameStatein 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:GameSystemPerforms the initial configuration of the system. At the moment of call, systemProvider already contains all objects of systems.- Overrides:
setupin classGameSystem
-
getSystemName
- Specified by:
getSystemNamein 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.DisposableReleases all resources of this object.- Specified by:
disposein interfaceDisposable- Overrides:
disposein classGameSystem
-