Class ParticleSetUpdater

java.lang.Object
com.badlogic.ashley.core.EntitySystem
com.badlogic.ashley.systems.IteratingSystem
gaiasky.scene.system.update.AbstractUpdateSystem
gaiasky.scene.system.update.ParticleSetUpdater
All Implemented Interfaces:
IObserver, EntityUpdater

public class ParticleSetUpdater extends AbstractUpdateSystem implements IObserver
Updates particle set entities, including their positions and visual properties.
  • Field Summary

    Fields inherited from class com.badlogic.ashley.core.EntitySystem

    priority
  • Constructor Summary

    Constructors
    Constructor
    Description
    ParticleSetUpdater(com.badlogic.ashley.core.Family family, int priority)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    loadDescriptorFile(ParticleSet set, IParticleRecord bean, int index, boolean isFocused)
     
    void
    notify(Event event, Object source, Object... data)
    Event notification call.
    protected void
    processEntity(com.badlogic.ashley.core.Entity entity, float deltaTime)
     
    void
    Do the proximity loading processing.
    void
    updateEntity(com.badlogic.ashley.core.Entity entity, float deltaTime)
    Updates the entity.

    Methods inherited from class com.badlogic.ashley.systems.IteratingSystem

    addedToEngine, getEntities, getFamily, removedFromEngine, update

    Methods inherited from class com.badlogic.ashley.core.EntitySystem

    checkProcessing, getEngine, setProcessing

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface EntityUpdater

    getFamily
    Modifier and Type
    Method
    Description
    com.badlogic.ashley.core.Family
    Returns the family for this updater.
  • Constructor Details

    • ParticleSetUpdater

      public ParticleSetUpdater(com.badlogic.ashley.core.Family family, int priority)
  • Method Details

    • processEntity

      protected void processEntity(com.badlogic.ashley.core.Entity entity, float deltaTime)
      Specified by:
      processEntity in class com.badlogic.ashley.systems.IteratingSystem
    • updateEntity

      public void updateEntity(com.badlogic.ashley.core.Entity entity, float deltaTime)
      Description copied from interface: EntityUpdater
      Updates the entity.
      Specified by:
      updateEntity in interface EntityUpdater
      Parameters:
      entity - The entity to update.
      deltaTime - The delta time since last frame.
    • updateCommon

      public void updateCommon(ICamera camera, ParticleSet set)
      Do the proximity loading processing.
      Parameters:
      camera - The camera.
      set - The set.
    • loadDescriptorFile

      public boolean loadDescriptorFile(ParticleSet set, IParticleRecord bean, int index, boolean isFocused)
    • notify

      public void notify(Event event, Object source, Object... data)
      Description copied from interface: IObserver
      Event notification call.
      Specified by:
      notify in interface IObserver
      Parameters:
      event - The event type.
      source - The source object, if any.
      data - The data associated with this event.