Class RenderView

All Implemented Interfaces:
IRenderable
Direct Known Subclasses:
LabelView, PointView

public class RenderView extends BaseView implements IRenderable
View of an entity for rendering purposes. Adds particle extra, particle set, and star set cached components to whatever is in base view.
  • Field Details Link icon

    • extra Link icon

      public ParticleExtra extra
      Particle component, maybe.
    • particleSet Link icon

      public ParticleSet particleSet
      Particle set component
    • starSet Link icon

      public StarSet starSet
      Star set component
  • Constructor Details Link icon

    • RenderView Link icon

      public RenderView()
    • RenderView Link icon

      public RenderView(com.badlogic.ashley.core.Entity entity)
  • Method Details Link icon

    • entityChanged Link icon

      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 BaseView
    • entityCleared Link icon

      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 BaseView
    • getDistToCamera Link icon

      public double getDistToCamera()
      Description copied from interface: IRenderable
      Gets the last distance to the camera calculated for this entity
      Specified by:
      getDistToCamera in interface IRenderable
      Returns:
      The distance
    • getOpacity Link icon

      public float getOpacity()
      Description copied from interface: IRenderable
      Returns the opacity of this renderable
      Specified by:
      getOpacity in interface IRenderable
      Overrides:
      getOpacity in class BaseView
      Returns:
      The opacity
    • getRadius Link icon

      public double getRadius()
    • textColour Link icon

      public float[] textColour()
      Text color for single objects
    • textColour Link icon

      public float[] textColour(String name)
      Text color for the star with the given name in a star set.