Class ParticleEffectComponent

java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.particles.components.ParticleEffectComponent

public class ParticleEffectComponent extends Component
This class adds a particle effect to track an NPC in the game e.g. sparkles on the fish eggs
  • Field Details

  • Constructor Details

  • 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
      Overrides:
      update in class Component
    • dispose

      public void dispose()
      disposes of the particles
      Overrides:
      dispose in class Component