Class Fade

java.lang.Object
gaiasky.scene.component.Fade
All Implemented Interfaces:
com.badlogic.ashley.core.Component

public class Fade extends Object implements com.badlogic.ashley.core.Component
  • Field Details

    • fadeIn

      public Vector2d fadeIn
      Fade in low and high limits
    • fadeInMap

      public Vector2d fadeInMap
      Fade in low and high limits
    • fadeOut

      public Vector2d fadeOut
      Fade out low and high limits
    • fadeOutMap

      public Vector2d fadeOutMap
      Fade out low and high limits
    • currentDistance

      public double currentDistance
      The current distance at each cycle, in internal units
    • fadePositionObject

      public com.badlogic.ashley.core.Entity fadePositionObject
      If set, the fading distance is the distance between the current object and this object. This has precedence over the fade position.
    • fadePositionObjectName

      public String fadePositionObjectName
      The name of the position object
    • fadePosition

      public Vector3b fadePosition
      The position to use in order to compute the fading distance.
  • Constructor Details

    • Fade

      public Fade()
  • Method Details

    • setFadein

      public void setFadein(double[] fadeIn)
    • setFadeIn

      public void setFadeIn(double[] fadeIn)
    • setFadeInMap

      public void setFadeInMap(double[] fadeInMap)
      Sets the values to which the fade in distances are mapped. If not set, they are initialized automatically with [0,1].
      Parameters:
      fadeInMap - The values.
    • setFadeout

      public void setFadeout(double[] fadeOut)
    • setFadeOut

      public void setFadeOut(double[] fadeOut)
    • setFadeOutMap

      public void setFadeOutMap(double[] fadeOutMap)
      Sets the values to which the fade out distances are mapped. If not set, they are initialized automatically with [1,0].
      Parameters:
      fadeOutMap - The values.
    • setFade

      public void setFade(double[] fade)
    • setFadepc

      public void setFadepc(double[] fade)
    • setFadePc

      public void setFadePc(double[] fade)
    • setPositionobjectname

      public void setPositionobjectname(String name)
    • setFadeObjectName

      public void setFadeObjectName(String name)
    • setFadePosition

      public void setFadePosition(Double fadePosition)
    • setFadePosition

      public void setFadePosition(double[] fadePosition)