Package gaiasky.scene.component
Class Fade
java.lang.Object
gaiasky.scene.component.Fade
- All Implemented Interfaces:
com.badlogic.ashley.core.Component
-
Field Summary
Modifier and TypeFieldDescriptiondouble
The current distance at each cycle, in internal unitsFade in low and high limitsFade in low and high limitsFade out low and high limitsFade out low and high limitsThe position to use in order to compute the fading distance.com.badlogic.ashley.core.Entity
If set, the fading distance is the distance between the current object and this object.The name of the position object -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setFade
(double[] fade) void
setFadein
(double[] fadeIn) void
setFadeIn
(double[] fadeIn) void
setFadeInMap
(double[] fadeInMap) Sets the values to which the fade in distances are mapped.void
setFadeObjectName
(String name) void
setFadeout
(double[] fadeOut) void
setFadeOut
(double[] fadeOut) void
setFadeOutMap
(double[] fadeOutMap) Sets the values to which the fade out distances are mapped.void
setFadepc
(double[] fade) void
setFadePc
(double[] fade) void
setFadePosition
(double[] fadePosition) void
setFadePosition
(Double fadePosition) void
setPositionobjectname
(String name)
-
Field Details
-
fadeIn
Fade in low and high limits -
fadeInMap
Fade in low and high limits -
fadeOut
Fade out low and high limits -
fadeOutMap
Fade out low and high limits -
currentDistance
public double currentDistanceThe current distance at each cycle, in internal units -
fadePositionObject
public com.badlogic.ashley.core.Entity fadePositionObjectIf set, the fading distance is the distance between the current object and this object. This has precedence over the fade position. -
fadePositionObjectName
The name of the position object -
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
-
setFadeObjectName
-
setFadePosition
-
setFadePosition
public void setFadePosition(double[] fadePosition)
-