public class RegularEmitter extends Emitter implements Json.Serializable
Emitter
which fits most of the particles simulation scenarios.Modifier and Type | Class and Description |
---|---|
static class |
RegularEmitter.EmissionMode
Possible emission modes.
|
Modifier and Type | Field and Description |
---|---|
RangedNumericValue |
delayValue |
RangedNumericValue |
durationValue |
ScaledNumericValue |
emissionValue |
ScaledNumericValue |
lifeOffsetValue |
ScaledNumericValue |
lifeValue |
maxParticleCount, minParticleCount, percent
Constructor and Description |
---|
RegularEmitter() |
RegularEmitter(RegularEmitter regularEmitter) |
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
|
ParticleControllerComponent |
copy() |
RangedNumericValue |
getDelay() |
RangedNumericValue |
getDuration() |
ScaledNumericValue |
getEmission() |
RegularEmitter.EmissionMode |
getEmissionMode()
Gets current emission mode.
|
ScaledNumericValue |
getLife() |
ScaledNumericValue |
getLifeOffset() |
float |
getPercentComplete() |
void |
init()
Called once during intialization
|
boolean |
isComplete() |
boolean |
isContinuous() |
void |
read(Json json,
JsonValue jsonData) |
void |
set(RegularEmitter emitter) |
void |
setContinuous(boolean continuous) |
void |
setEmissionMode(RegularEmitter.EmissionMode emissionMode)
Sets emission mode.
|
void |
start()
Called at the start of the simulation.
|
void |
update()
Called to execute the component behavior.
|
void |
write(Json json) |
end, getMaxParticleCount, getMinParticleCount, set, setMaxParticleCount, setMinParticleCount, setParticleCount
dispose, killParticles, load, save, set
public RangedNumericValue delayValue
public RangedNumericValue durationValue
public ScaledNumericValue lifeOffsetValue
public ScaledNumericValue lifeValue
public ScaledNumericValue emissionValue
public RegularEmitter()
public RegularEmitter(RegularEmitter regularEmitter)
public void allocateChannels()
ParticleControllerComponent
allocateChannels
in class ParticleControllerComponent
public void start()
ParticleControllerComponent
start
in class ParticleControllerComponent
public void init()
ParticleControllerComponent
public void activateParticles(int startIndex, int count)
ParticleControllerComponent
activateParticles
in class ParticleControllerComponent
public void update()
ParticleControllerComponent
update
in class ParticleControllerComponent
public ScaledNumericValue getLife()
public ScaledNumericValue getEmission()
public RangedNumericValue getDuration()
public RangedNumericValue getDelay()
public ScaledNumericValue getLifeOffset()
public boolean isContinuous()
public void setContinuous(boolean continuous)
public RegularEmitter.EmissionMode getEmissionMode()
public void setEmissionMode(RegularEmitter.EmissionMode emissionMode)
emissionMode
- Emission mode to set.public boolean isComplete()
public float getPercentComplete()
public void set(RegularEmitter emitter)
public ParticleControllerComponent copy()
copy
in class ParticleControllerComponent
public void write(Json json)
write
in interface Json.Serializable
write
in class Emitter
Copyright © 2015. All rights reserved.