Class OctreeObjectView

All Implemented Interfaces:
IOctreeObject, IPosition

public class OctreeObjectView extends PositionView implements IOctreeObject
  • Field Details

  • Constructor Details

    • OctreeObjectView

      public OctreeObjectView(com.badlogic.ashley.core.Entity entity)
  • Method Details

    • entityCheck

      protected void entityCheck(com.badlogic.ashley.core.Entity entity)
      Description copied from class: AbstractView
      Checks whether the given entity is suitable for this view. This method should throw a RuntimeException if the entity is not suitable.
      Overrides:
      entityCheck in class PositionView
      Parameters:
      entity - The entity.
    • entityChanged

      protected void entityChanged()
      Description copied from class: AbstractView
      Contains actions to take after a new entity has been set. This method is typically used to initialize the view components.
      Overrides:
      entityChanged in class PositionView
    • entityCleared

      protected void entityCleared()
      Description copied from class: AbstractView
      This method is called when the entity of this view is cleared. It should set all component references to null.
      Overrides:
      entityCleared in class PositionView
    • getStarCount

      public int getStarCount()
      Specified by:
      getStarCount in interface IOctreeObject
    • dispose

      public void dispose()
      Specified by:
      dispose in interface IOctreeObject
    • setOctant

      public void setOctant(OctreeNode octreeNode)