Class ParticleEffectWrapper

java.lang.Object
com.csse3200.game.rendering.ParticleEffectWrapper

public class ParticleEffectWrapper extends Object
Wrapper for the particle effect so that pooled effects can have a type and a category
  • Constructor Details

    • ParticleEffectWrapper

      public ParticleEffectWrapper(com.badlogic.gdx.graphics.g2d.ParticleEffectPool.PooledEffect effect, String category, String type)
      Wraps a pooled particle effect with a category and a type
      Parameters:
      effect - pooled effect
      category - category of the particle effect
      type - type of particle effect
  • Method Details

    • getPooledEffect

      public com.badlogic.gdx.graphics.g2d.ParticleEffectPool.PooledEffect getPooledEffect()
      Gets the pooled effect that is contained in the wrapper
      Returns:
      pooled effect
    • getCategory

      public String getCategory()
      Gets the wrappers category
      Returns:
      category of the wrapper
    • getType

      public String getType()
      Gets the type of particle effect in the wrapper
      Returns:
      type of particle effect