Package com.csse3200.game.rendering
Class ParticleEffectWrapper
java.lang.Object
com.csse3200.game.rendering.ParticleEffectWrapper
Wrapper for the particle effect so that pooled effects can have a type and a category
-
Constructor Summary
ConstructorsConstructorDescriptionParticleEffectWrapper
(com.badlogic.gdx.graphics.g2d.ParticleEffectPool.PooledEffect effect, String category, String type) Wraps a pooled particle effect with a category and a type -
Method Summary
Modifier and TypeMethodDescriptionGets the wrappers categorycom.badlogic.gdx.graphics.g2d.ParticleEffectPool.PooledEffect
Gets the pooled effect that is contained in the wrappergetType()
Gets the type of particle effect in the wrapper
-
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 effectcategory
- category of the particle effecttype
- 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
Gets the wrappers category- Returns:
- category of the wrapper
-
getType
Gets the type of particle effect in the wrapper- Returns:
- type of particle effect
-