Class ParticleEffectComponent
java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.particles.components.ParticleEffectComponent
This class adds a particle effect to track an NPC in the game e.g. sparkles on the fish eggs
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Allows the particle effect animation to completevoid
dispose()
disposes of the particlesvoid
emit()
Starts the particle effect animation if it has completedvoid
Starts the particle effect animation no matter whatvoid
stop()
Stops the particle effects completely.void
update()
makes the particle effects follow the entityMethods inherited from class com.csse3200.game.components.Component
create, earlyUpdate, getEntity, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate
-
Field Details
-
effect
-
-
Constructor Details
-
ParticleEffectComponent
-
-
Method Details
-
forceEmit
public void forceEmit()Starts the particle effect animation no matter what -
emit
public void emit()Starts the particle effect animation if it has completed -
allowCompletion
public void allowCompletion()Allows the particle effect animation to complete -
stop
public void stop()Stops the particle effects completely. -
update
public void update()makes the particle effects follow the entity -
dispose
public void dispose()disposes of the particles
-