Class ElementsSetInitializer

java.lang.Object
com.badlogic.ashley.core.EntitySystem
com.badlogic.ashley.systems.IteratingSystem
gaiasky.scene.system.initialize.AbstractInitSystem
gaiasky.scene.system.initialize.ElementsSetInitializer
All Implemented Interfaces:
EntityInitializer

public class ElementsSetInitializer extends AbstractInitSystem
  • Field Summary

    Fields inherited from class gaiasky.scene.system.initialize.AbstractInitSystem

    engineBackup, logger

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

    priority
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    void
    initializeEntity(com.badlogic.ashley.core.Entity entity)
    Contains the initialization of this entity before the scene graph structure has been constructed, or the entity is in the index.
    void
    Gather the children objects that need to be rendered as an orbit line into a list, for they need to be updated every single frame.
    void
    setUpEntity(com.badlogic.ashley.core.Entity entity)
    Contains the set up of this entity, after the entity has been added to the scene graph and it is in the index.

    Methods inherited from class gaiasky.scene.system.initialize.AbstractInitSystem

    addedToEngine, isModeInit, isModeSetUp, processEntity, setModeInit, setModeSetUp, toString

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

    getEntities, getFamily, removedFromEngine, update

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

    checkProcessing, getEngine, setProcessing

    Methods inherited from class java.lang.Object

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

    • ElementsSetInitializer

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

    • initializeEntity

      public void initializeEntity(com.badlogic.ashley.core.Entity entity)
      Description copied from interface: EntityInitializer
      Contains the initialization of this entity before the scene graph structure has been constructed, or the entity is in the index.
      Parameters:
      entity - The entity.
    • setUpEntity

      public void setUpEntity(com.badlogic.ashley.core.Entity entity)
      Description copied from interface: EntityInitializer
      Contains the set up of this entity, after the entity has been added to the scene graph and it is in the index.
      Parameters:
      entity - The entity.
    • initializeOrbitsWithOrbit

      public void initializeOrbitsWithOrbit(GraphNode graph, OrbitElementsSet set)
      Gather the children objects that need to be rendered as an orbit line into a list, for they need to be updated every single frame.