Class ParallelSystem

java.lang.Object
com.badlogic.ashley.core.EntitySystem
gaiasky.scene.system.ParallelSystem

public abstract class ParallelSystem extends com.badlogic.ashley.core.EntitySystem
  • Field Summary Link icon

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

    priority
  • Constructor Summary Link icon

    Constructors
    Modifier
    Constructor
    Description
    protected
    ParallelSystem(com.badlogic.ashley.core.Family family)
    Instantiates a system that will iterate over the entities described by the Family.
    protected
    ParallelSystem(com.badlogic.ashley.core.Family family, int priority)
    Instantiates a system that will iterate over the entities described by the Family, with a specific priority.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    void
    addedToEngine(com.badlogic.ashley.core.Engine engine)
     
    com.badlogic.ashley.utils.ImmutableArray<com.badlogic.ashley.core.Entity>
     
    com.badlogic.ashley.core.Family
     
    protected abstract void
    processEntity(com.badlogic.ashley.core.Entity entity, float deltaTime)
    This method is called on every entity on every update call of the EntitySystem.
    void
    removedFromEngine(com.badlogic.ashley.core.Engine engine)
     
    void
    update(float deltaTime)
     

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

    checkProcessing, getEngine, setProcessing

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details Link icon

    • ParallelSystem Link icon

      protected ParallelSystem(com.badlogic.ashley.core.Family family)
      Instantiates a system that will iterate over the entities described by the Family.
      Parameters:
      family - The family of entities iterated over in this System
    • ParallelSystem Link icon

      protected ParallelSystem(com.badlogic.ashley.core.Family family, int priority)
      Instantiates a system that will iterate over the entities described by the Family, with a specific priority.
      Parameters:
      family - The family of entities iterated over in this System
      priority - The priority to execute this system with (lower means higher priority)
  • Method Details Link icon

    • addedToEngine Link icon

      public void addedToEngine(com.badlogic.ashley.core.Engine engine)
      Overrides:
      addedToEngine in class com.badlogic.ashley.core.EntitySystem
    • removedFromEngine Link icon

      public void removedFromEngine(com.badlogic.ashley.core.Engine engine)
      Overrides:
      removedFromEngine in class com.badlogic.ashley.core.EntitySystem
    • update Link icon

      public void update(float deltaTime)
      Overrides:
      update in class com.badlogic.ashley.core.EntitySystem
    • getEntities Link icon

      public com.badlogic.ashley.utils.ImmutableArray<com.badlogic.ashley.core.Entity> getEntities()
      Returns:
      set of entities processed by the system
    • getFamily Link icon

      public com.badlogic.ashley.core.Family getFamily()
      Returns:
      the Family used when the system was created
    • processEntity Link icon

      protected abstract void processEntity(com.badlogic.ashley.core.Entity entity, float deltaTime)
      This method is called on every entity on every update call of the EntitySystem. Override this to implement your system's specific processing.
      Parameters:
      entity - The current Entity being processed
      deltaTime - The delta time between the last and current frame