Class ParticleSystem

All Implemented Interfaces:
Disposable, KryoSerializable

public final class ParticleSystem extends GameSystem
  • Constructor Details

    • ParticleSystem

      public ParticleSystem()
  • Method Details

    • affectsGameState

      public boolean affectsGameState()
      Specified by:
      affectsGameState in class GameSystem
    • 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

      public void addOrbParticle(TextureRegion region, float size, int x1, int y1, int x2, int y2)
    • addCoinParticle

      public void addCoinParticle(float x, float y, int amount)
    • addChainLightning

      public void addChainLightning(ChainLightning chainLightning)
    • addEnemyHitParticle

      public void addEnemyHitParticle(Tower tower, Enemy enemy, float damage, Projectile projectile)
    • 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 class GameSystem
    • getSystemName

      public String getSystemName()
      Specified by:
      getSystemName in class GameSystem
    • freeParticle

      public static void freeParticle(ParticleEffect particleEffect)
    • addLimitedParticle

      public void addLimitedParticle(ParticleEffect particleEffect, LimitedParticleType limitedParticleType, float x, float y)
    • willParticleBeSkipped

      public boolean willParticleBeSkipped()
    • addParticle

      public boolean addParticle(ParticleEffect particleEffect, boolean canSkip)
      Returns:
      true, если партикл добавлен (не скипнут)
    • addOpaqueParticle

      public boolean addOpaqueParticle(ParticleEffect particleEffect)
    • drawDamageParticles

      public void drawDamageParticles(Batch batch)
    • updateDraw

      public void updateDraw(float realDetaTime, float inGameDeltaTime)
    • draw

      public void draw(Batch batch, float realDetaTime, float inGameDeltaTime)
    • dispose

      public void dispose()
      Description copied from interface: com.badlogic.gdx.utils.Disposable
      Releases all resources of this object.
      Specified by:
      dispose in interface Disposable
      Overrides:
      dispose in class GameSystem