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 anInfluencerwhich controls whichParticleControllerwill be assigned to a particle.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classParticleControllerInfluencer.RandomAssigns a random controller oftemplatesto the particles.static classParticleControllerInfluencer.SingleAssigns the first controller oftemplatesto 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 voidallocateChannels()Called during initialization to allocate additional particles channelsvoiddispose()Releases all resources of this object.voidend()Called at the end of the simulation.voidload(AssetManager manager, ResourceData resources)voidsave(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:ParticleControllerComponentCalled during initialization to allocate additional particles channels- Overrides:
allocateChannelsin classParticleControllerComponent
-
end
public void end()
Description copied from class:ParticleControllerComponentCalled at the end of the simulation.- Overrides:
endin classParticleControllerComponent
-
dispose
public void dispose()
Description copied from interface:DisposableReleases all resources of this object.- Specified by:
disposein interfaceDisposable- Overrides:
disposein classParticleControllerComponent
-
save
public void save(AssetManager manager, ResourceData resources)
- Specified by:
savein interfaceResourceData.Configurable- Overrides:
savein classParticleControllerComponent
-
load
public void load(AssetManager manager, ResourceData resources)
- Specified by:
loadin interfaceResourceData.Configurable- Overrides:
loadin classParticleControllerComponent
-
-