Class ParticleControllerInfluencer
- 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
-
- All Implemented Interfaces:
ResourceData.Configurable
,Disposable
,Json.Serializable
- Direct Known Subclasses:
ParticleControllerInfluencer.Random
,ParticleControllerInfluencer.Single
public abstract class ParticleControllerInfluencer extends Influencer
It's anInfluencer
which controls whichParticleController
will be assigned to a particle.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ParticleControllerInfluencer.Random
Assigns a random controller oftemplates
to the particles.static class
ParticleControllerInfluencer.Single
Assigns the first controller oftemplates
to the particles.
-
Field Summary
Fields Modifier and Type Field Description Array<ParticleController>
templates
-
Constructor Summary
Constructors Constructor Description ParticleControllerInfluencer()
ParticleControllerInfluencer(ParticleControllerInfluencer influencer)
ParticleControllerInfluencer(ParticleController... templates)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
allocateChannels()
Called during initialization to allocate additional particles channelsvoid
dispose()
Releases all resources of this object.void
end()
Called at the end of the simulation.void
load(AssetManager manager, ResourceData resources)
void
save(AssetManager manager, ResourceData resources)
-
Methods inherited from class com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent
activateParticles, copy, init, killParticles, read, set, start, update, write
-
-
-
-
Field Detail
-
templates
public Array<ParticleController> templates
-
-
Constructor Detail
-
ParticleControllerInfluencer
public ParticleControllerInfluencer()
-
ParticleControllerInfluencer
public ParticleControllerInfluencer(ParticleController... templates)
-
ParticleControllerInfluencer
public ParticleControllerInfluencer(ParticleControllerInfluencer influencer)
-
-
Method Detail
-
allocateChannels
public void allocateChannels()
Description copied from class:ParticleControllerComponent
Called during initialization to allocate additional particles channels- Overrides:
allocateChannels
in classParticleControllerComponent
-
end
public void end()
Description copied from class:ParticleControllerComponent
Called at the end of the simulation.- Overrides:
end
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 classParticleControllerComponent
-
save
public void save(AssetManager manager, ResourceData resources)
- Specified by:
save
in interfaceResourceData.Configurable
- Overrides:
save
in classParticleControllerComponent
-
load
public void load(AssetManager manager, ResourceData resources)
- Specified by:
load
in interfaceResourceData.Configurable
- Overrides:
load
in classParticleControllerComponent
-
-