Class ParticleSystem

All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable, com.esotericsoftware.kryo.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(com.badlogic.gdx.graphics.g2d.TextureRegion region, float x, float y, float originX, float originY, float width, float height, float rotation)
    • addFlashParticle

      public void addFlashParticle(com.badlogic.gdx.graphics.g2d.TextureRegion region, float x, float y, float originX, float originY, float width, float height, float rotation, com.badlogic.gdx.graphics.Color color)
    • addShatterParticle

      public void addShatterParticle(com.badlogic.gdx.graphics.g2d.TextureRegion region, float x, float y, float size, float rotation, float scale)
    • addShatterParticle

      public void addShatterParticle(com.badlogic.gdx.graphics.g2d.TextureRegion region, float x, float y, float size, float rotation, float scale, com.badlogic.gdx.graphics.Color color, com.badlogic.gdx.math.Interpolation timeFunction, boolean overParticles)
    • addXpOrbParticle

      public void addXpOrbParticle(float xpAmount, int x1, int y1, int x2, int y2)
    • addOrbParticle

      public void addOrbParticle(com.badlogic.gdx.graphics.g2d.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
      Произвести начальную настройку системы. На момент вызова этого метода, systemProvider содержит объекты всех систем.
      Overrides:
      setup in class GameSystem
    • getSystemName

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

      public static void freeParticle(com.badlogic.gdx.graphics.g2d.ParticleEffect particleEffect)
    • addParticle

      public void addParticle(com.badlogic.gdx.graphics.g2d.ParticleEffect particleEffect, LimitedParticleType limitedParticleType, float x, float y)
    • willParticleBeSkipped

      public boolean willParticleBeSkipped()
    • addParticle

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

      public boolean addOpaqueParticle(com.badlogic.gdx.graphics.g2d.ParticleEffect particleEffect)
    • drawDamageParticles

      public void drawDamageParticles(com.badlogic.gdx.graphics.g2d.Batch batch)
    • updateDraw

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

      public void draw(com.badlogic.gdx.graphics.g2d.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 com.badlogic.gdx.utils.Disposable
      Overrides:
      dispose in class GameSystem