-
- All Implemented Interfaces:
public final class PartySystemPartySystem is responsible for requesting particles from the emitter and updating the particles everytime a new frame is requested.
-
-
Constructor Summary
Constructors Constructor Description PartySystem(Party party, Long createdAt, Float pixelDensity)
-
Method Summary
Modifier and Type Method Description final BooleangetEnabled()final UnitsetEnabled(Boolean enabled)final PartygetParty()final LonggetCreatedAt()final List<Particle>render(Float deltaTime, CoreRect drawArea)final BooleanisDoneEmitting()When the emitter is done emitting. final IntegergetActiveParticleAmount()-
-
Constructor Detail
-
PartySystem
PartySystem(Party party, Long createdAt, Float pixelDensity)
- Parameters:
party- configuration class with instructions on how to create the particles for the EmittercreatedAt- timestamp of when the partySystem is createdpixelDensity- default value taken from resources to measure based on pixelDensity
-
-
Method Detail
-
getEnabled
final Boolean getEnabled()
-
setEnabled
final Unit setEnabled(Boolean enabled)
-
getCreatedAt
final Long getCreatedAt()
-
isDoneEmitting
final Boolean isDoneEmitting()
When the emitter is done emitting.
-
getActiveParticleAmount
final Integer getActiveParticleAmount()
-
-
-
-