Emitter is a ParticleControllerComponent which will handle the particles emission. It must update the
Emitter#percent to reflect the current percentage of the current emission cycle. It should consider
Emitter#minParticleCount and Emitter#maxParticleCount to rule particle emission. It should notify the particle
controller when particles are activated, killed, or when an emission cycle begins.
| Modifier and Type | Field and Description |
|---|---|
| public int | maxParticleCount
The min/max quantity of particles |
| public int | minParticleCount
The min/max quantity of particles |
| public float | percent
Current state of the emission, should be currentTime/ duration Must be updated on each update |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | end()
Overrides com. Called at the end of the simulation. |
| public int | |
| public int | |
| public void | init()
Overrides com. Called once during intialization |
| public boolean | |
| public void | read(Json json, JsonValue jsonData)
Overrides com. Implements com.
|
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| maxParticleCount | back to summary |
|---|---|
| public int maxParticleCount The min/max quantity of particles | |
| minParticleCount | back to summary |
|---|---|
| public int minParticleCount The min/max quantity of particles | |
| percent | back to summary |
|---|---|
| public float percent Current state of the emission, should be currentTime/ duration Must be updated on each update | |
| Emitter | back to summary |
|---|---|
| public Emitter(Emitter regularEmitter) | |
| Emitter | back to summary |
|---|---|
| public Emitter() | |
| end | back to summary |
|---|---|
| public void end() Overrides com. Doc from com. Called at the end of the simulation.
| |
| getMaxParticleCount | back to summary |
|---|---|
| public int getMaxParticleCount() | |
| getMinParticleCount | back to summary |
|---|---|
| public int getMinParticleCount() | |
| init | back to summary |
|---|---|
| public void init() Overrides com. Doc from com. Called once during intialization
| |
| isComplete | back to summary |
|---|---|
| public boolean isComplete() | |
| read | back to summary |
|---|---|
| public void read(Json json, JsonValue jsonData) Overrides com. Implements com.
| |
| set | back to summary |
|---|---|
| public void set(Emitter emitter) | |
| setMaxParticleCount | back to summary |
|---|---|
| public void setMaxParticleCount(int maxParticleCount) | |
| setMinParticleCount | back to summary |
|---|---|
| public void setMinParticleCount(int minParticleCount) | |
| setParticleCount | back to summary |
|---|---|
| public void setParticleCount(int aMin, int aMax) | |
| write | back to summary |
|---|---|
| public void write(Json json) Overrides com. Implements com.
| |