Class SceneGraphBuilderSystem

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

public class SceneGraphBuilderSystem extends AbstractInitSystem
  • Field Summary

    Fields inherited from class AbstractInitSystem

    engineBackup, logger
    Modifier and Type
    Field
    Description
    protected com.badlogic.ashley.core.Engine
     
    protected Logger.Log
     

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

    priority
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    final void
    add(com.badlogic.ashley.core.Entity parent, com.badlogic.ashley.core.Entity... children)
    Adds the given Entity list as children to this node.
    final void
    addChild(com.badlogic.ashley.core.Entity parent, com.badlogic.ashley.core.Entity child, boolean updateAncestorCount)
    Adds a child to the given node and updates the number of children in this node and in all ancestors.
    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
    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 AbstractInitSystem

    addedToEngine, isModeInit, isModeSetUp, processEntity, setModeInit, setModeSetUp, toString
    Modifier and Type
    Method
    Description
    void
    addedToEngine(com.badlogic.ashley.core.Engine engine)
     
    boolean
     
    boolean
     
    protected void
    processEntity(com.badlogic.ashley.core.Entity entity, float deltaTime)
     
    void
     
    void
     
     

    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 Object

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

    • SceneGraphBuilderSystem

      public SceneGraphBuilderSystem(Scene scene, 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.
    • addChild

      public final void addChild(com.badlogic.ashley.core.Entity parent, com.badlogic.ashley.core.Entity child, boolean updateAncestorCount)
      Adds a child to the given node and updates the number of children in this node and in all ancestors.
      Parameters:
      child - The child node to add.
      updateAncestorCount - Whether to update the ancestors number of children.
    • add

      public final void add(com.badlogic.ashley.core.Entity parent, com.badlogic.ashley.core.Entity... children)
      Adds the given Entity list as children to this node.
      Parameters:
      children - The children nodes to add.