Bandidos
|
Public Member Functions | |
EngineTween (Tween tween) | |
boolean | isCleaned () |
EngineTween | setCallbackMethod (IEngineTweenMethod method) |
EngineTween | ease (EaseType tweenType) |
EngineTween | ease (TweenEquation tweenEquation) |
EngineTween | delay (float delay) |
int | getTweenType () |
Tween | getTween () |
void | clean () |
Public Member Functions inherited from com.mygdx.game.engine.events.EventDispatcher | |
void | addEventListener (String type, IEventReceiver listeningClass) |
void | dispatchEvent (Event event) |
void | removeEventListener (String type, IEventReceiver listener) |
boolean | hasEventListener (String type) |
ArrayList< ListenerItem > | getAllListeners () |
void | destroyAllListeners () |
void | clean () |
Static Public Attributes | |
static final String | ENGINE_TWEEN_EVENT = "EngineTweenEvent" |
Protected Member Functions | |
void | sendTweenEvent (int type) |
This class contains information on the Tween which is triggered by the 'EngineTweener' including the tween itself. You can add an eventlistener to this class to listen to the set events which are triggered by the event. You can also add your own callback by calling the 'setCallbackMethod' method
com.mygdx.game.engine.tweening.EngineTween.EngineTween | ( | Tween | tween | ) |
Sets the EngineTween and sets a callback listener to it so it can listen to the different events. WARNING: Do not add your own callback to the Tween. If you need one, you can listen to the ENGINE_TWEEN_EVENT or add a callback with the 'setCallbackMethod'
tween | which this EngineTween represents |
void com.mygdx.game.engine.tweening.EngineTween.clean | ( | ) |
Cleans the class and makes it ready for garbage collection.
EngineTween com.mygdx.game.engine.tweening.EngineTween.delay | ( | float | delay | ) |
This tween will wait the amount of seconds given as value until it starts.
delay | in seconds to wait before starting tween. |
EngineTween com.mygdx.game.engine.tweening.EngineTween.ease | ( | EaseType | tweenType | ) |
Sets an ease to the Tween with the given TweenType
tweenType | represents the Ease type which will set the motion of the tween. |
EngineTween com.mygdx.game.engine.tweening.EngineTween.ease | ( | TweenEquation | tweenEquation | ) |
Sets an ease to the Tween with the given TweenEquation
tweenEquation | represents the Ease type which will set the motion of the tween. |
Tween com.mygdx.game.engine.tweening.EngineTween.getTween | ( | ) |
Returns the Tween which this EngineTween is linked to in its constructor.
int com.mygdx.game.engine.tweening.EngineTween.getTweenType | ( | ) |
Returns the Tween Type of the Accessor. For Example the POSITION type of the 'TransformAccessor'
boolean com.mygdx.game.engine.tweening.EngineTween.isCleaned | ( | ) |
Returns whether the class has been cleaned or not.
|
protected |
Triggeres the tweening method and event listeners which where given / linked to this EngineTween.
type | of event occurred. This list is given in the 'TweenCallback' class. Default 'COMPLETED' type |
EngineTween com.mygdx.game.engine.tweening.EngineTween.setCallbackMethod | ( | IEngineTweenMethod | method | ) |
Sets a method which will be triggered on the different callback events which are set in the tween itself.
method | container to trigger when an event occures. |
|
static |