public abstract class ParticleControllerComponent extends Object implements Disposable, Json.Serializable, ResourceData.Configurable
ParticleController
component.
A component duty is to participate in one or some events during the simulation.
(i.e it can handle the particles emission or modify particle properties, etc.).Constructor and Description |
---|
ParticleControllerComponent() |
Modifier and Type | Method and Description |
---|---|
void |
activateParticles(int startIndex,
int count)
Called to initialize new emitted particles.
|
void |
allocateChannels()
Called during initialization to allocate additional particles channels
|
abstract ParticleControllerComponent |
copy() |
void |
dispose()
Releases all resources of this object.
|
void |
end()
Called at the end of the simulation.
|
void |
init()
Called once during intialization
|
void |
killParticles(int startIndex,
int count)
Called to notify which particles have been killed.
|
void |
load(AssetManager manager,
ResourceData data) |
void |
read(Json json,
JsonValue jsonData) |
void |
save(AssetManager manager,
ResourceData data) |
void |
set(ParticleController particleController) |
void |
start()
Called at the start of the simulation.
|
void |
update()
Called to execute the component behavior.
|
void |
write(Json json) |
public void activateParticles(int startIndex, int count)
public void killParticles(int startIndex, int count)
public void update()
public void init()
public void start()
public void end()
public void dispose()
Disposable
dispose
in interface Disposable
public abstract ParticleControllerComponent copy()
public void allocateChannels()
public void set(ParticleController particleController)
public void save(AssetManager manager, ResourceData data)
save
in interface ResourceData.Configurable
public void load(AssetManager manager, ResourceData data)
load
in interface ResourceData.Configurable
public void write(Json json)
write
in interface Json.Serializable
public void read(Json json, JsonValue jsonData)
read
in interface Json.Serializable
Copyright © 2015. All rights reserved.