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.templatesto 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 voidactivateParticles(int startIndex, int count)Called to initialize new emitted particles.ParticleControllerInfluencer.Randomcopy()voiddispose()Releases all resources of this object.voidinit()Called once during intializationvoidkillParticles(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:ParticleControllerComponentCalled once during intialization- Overrides:
initin classParticleControllerComponent
-
dispose
public void dispose()
Description copied from interface:DisposableReleases all resources of this object.- Specified by:
disposein interfaceDisposable- Overrides:
disposein classParticleControllerInfluencer
-
activateParticles
public void activateParticles(int startIndex, int count)Description copied from class:ParticleControllerComponentCalled to initialize new emitted particles.- Overrides:
activateParticlesin classParticleControllerComponent
-
killParticles
public void killParticles(int startIndex, int count)Description copied from class:ParticleControllerComponentCalled to notify which particles have been killed.- Overrides:
killParticlesin classParticleControllerComponent
-
copy
public ParticleControllerInfluencer.Random copy()
- Specified by:
copyin classParticleControllerComponent
-
-