Class ParticleControllerInfluencer.Random
- java.lang.Object
-
- com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent
-
- com.badlogic.gdx.graphics.g3d.particles.influencers.Influencer
-
- com.badlogic.gdx.graphics.g3d.particles.influencers.ParticleControllerInfluencer
-
- com.badlogic.gdx.graphics.g3d.particles.influencers.ParticleControllerInfluencer.Random
-
- All Implemented Interfaces:
ResourceData.Configurable
,Disposable
,Json.Serializable
- Enclosing class:
- ParticleControllerInfluencer
public static class ParticleControllerInfluencer.Random extends ParticleControllerInfluencer
Assigns a random controller ofParticleControllerInfluencer.templates
to the particles.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.badlogic.gdx.graphics.g3d.particles.influencers.ParticleControllerInfluencer
ParticleControllerInfluencer.Random, ParticleControllerInfluencer.Single
-
-
Field Summary
-
Fields inherited from class com.badlogic.gdx.graphics.g3d.particles.influencers.ParticleControllerInfluencer
templates
-
-
Constructor Summary
Constructors Constructor Description Random()
Random(ParticleControllerInfluencer.Random particleControllerRandom)
Random(ParticleController... templates)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activateParticles(int startIndex, int count)
Called to initialize new emitted particles.ParticleControllerInfluencer.Random
copy()
void
dispose()
Releases all resources of this object.void
init()
Called once during intializationvoid
killParticles(int startIndex, int count)
Called to notify which particles have been killed.-
Methods inherited from class com.badlogic.gdx.graphics.g3d.particles.influencers.ParticleControllerInfluencer
allocateChannels, end, load, save
-
-
-
-
Constructor Detail
-
Random
public Random()
-
Random
public Random(ParticleController... templates)
-
Random
public Random(ParticleControllerInfluencer.Random particleControllerRandom)
-
-
Method Detail
-
init
public void init()
Description copied from class:ParticleControllerComponent
Called once during intialization- Overrides:
init
in classParticleControllerComponent
-
dispose
public void dispose()
Description copied from interface:Disposable
Releases all resources of this object.- Specified by:
dispose
in interfaceDisposable
- Overrides:
dispose
in classParticleControllerInfluencer
-
activateParticles
public void activateParticles(int startIndex, int count)
Description copied from class:ParticleControllerComponent
Called to initialize new emitted particles.- Overrides:
activateParticles
in classParticleControllerComponent
-
killParticles
public void killParticles(int startIndex, int count)
Description copied from class:ParticleControllerComponent
Called to notify which particles have been killed.- Overrides:
killParticles
in classParticleControllerComponent
-
copy
public ParticleControllerInfluencer.Random copy()
- Specified by:
copy
in classParticleControllerComponent
-
-