C# Class AbstractGoTween, wepwep

base class shared by the Tween and TweenChain classes to allow a seemless API when controlling either of them
Afficher le fichier Open project: encephalopathy/wepwep Class Usage Examples

Méthodes publiques

Свойство Type Description
id int

Protected Properties

Свойство Type Description
_completedIterations int
_deltaIterations int
_didBegin bool
_didInit bool
_didIterateLastFrame bool
_didIterateThisFrame bool
_elapsedTime float
_fireIterationEnd bool
_fireIterationStart bool
_isLoopingBackOnPingPong bool
_onBegin Action
_onComplete Action
_onInit Action
_onIterationEnd Action
_onIterationStart Action
_onUpdate Action
_totalElapsedTime float

Méthodes publiques

Méthode Description
allTweenProperties ( ) : List

returns a list of all the TweenProperties contained in the tween and all its children (if it is a TweenChain or a TweenFlow) technically, this should be marked as internal

complete ( ) : void

completes the tween. sets the playhead to it's final position as if the tween completed normally. takes into account if the tween was playing forward or reversed.

containsTweenProperty ( AbstractTweenProperty, property ) : bool

returns true if the tween contains the same type (or propertyName) property in its property list technically, this should be marked as internal

destroy ( ) : void

removes the Tween from action and cleans up its state

goTo ( float time ) : void

goes to the specified time clamping it from 0 to the total duration of the tween. if the tween is not playing it can optionally be force updated to the time specified. delays are not taken into effect. (must be implemented by inherited classes.)

goToAndPlay ( float time ) : void

goes to the time and starts playback skipping any delays

isValid ( ) : bool

subclasses should return true if they are a valid and ready to be added to the list of running tweens or false if not ready. technically, this should be marked as internal

pause ( ) : void

pauses playback

play ( ) : void

resumes playback

playBackwards ( ) : void

plays the tween backwards. if it is already playing backwards has no effect

playForward ( ) : void

plays the tween forward. if it is already playing forward has no effect

removeTweenProperty ( AbstractTweenProperty, property ) : bool

attempts to remove the tween property returning true if successful technically, this should be marked as internal

restart ( bool skipDelay = true ) : void

rewinds the tween to the beginning (or end, depending on isReversed) and starts playback, optionally skipping delay (only relevant for Tweens).

reverse ( ) : void

reverses playback. if going forward it will be going backward after this and vice versa.

rewind ( ) : void

rewinds the tween to the beginning (or end, depending on isReversed) and pauses playback.

setOnBeginHandler ( Action onBegin ) : void
setOnCompleteHandler ( Action onComplete ) : void
setOnInitHandler ( Action onInit ) : void
setOnUpdateHandler ( Action onUpdate ) : void
setonIterationEndHandler ( Action onIterationEnd ) : void
setonIterationStartHandler ( Action onIterationStart ) : void
update ( float deltaTime ) : bool

tick method. if it returns true it indicates the tween is complete. note: at it's base, AbstractGoTween does not fire events, it is up to the implementer to do so. see GoTween and AbstractGoTweenCollection for examples.

waitForCompletion ( ) : IEnumerator

waits for either completion or destruction. call in a Coroutine and yield on the return

Méthodes protégées

Méthode Description
onBegin ( ) : void

called whenever the tween is updated and the playhead is at the start (or end, depending on isReversed) of the tween.

onComplete ( ) : void

called when the tween completes playing.

onInit ( ) : void

called once per tween when it is first updated

onIterationEnd ( ) : void

called once per iteration at the end of the iteration.

onIterationStart ( ) : void

called once per iteration at the start of the iteration.

onUpdate ( ) : void

called once per update, after the update has occured.

reset ( ) : void

resets the tween to the beginning, taking isReversed into account.

Method Details

allTweenProperties() public abstract méthode

returns a list of all the TweenProperties contained in the tween and all its children (if it is a TweenChain or a TweenFlow) technically, this should be marked as internal
public abstract allTweenProperties ( ) : List
Résultat List

complete() public méthode

completes the tween. sets the playhead to it's final position as if the tween completed normally. takes into account if the tween was playing forward or reversed.
public complete ( ) : void
Résultat void

containsTweenProperty() public abstract méthode

returns true if the tween contains the same type (or propertyName) property in its property list technically, this should be marked as internal
public abstract containsTweenProperty ( AbstractTweenProperty, property ) : bool
property AbstractTweenProperty,
Résultat bool

destroy() public méthode

removes the Tween from action and cleans up its state
public destroy ( ) : void
Résultat void

goTo() public abstract méthode

goes to the specified time clamping it from 0 to the total duration of the tween. if the tween is not playing it can optionally be force updated to the time specified. delays are not taken into effect. (must be implemented by inherited classes.)
public abstract goTo ( float time ) : void
time float
Résultat void

goToAndPlay() public méthode

goes to the time and starts playback skipping any delays
public goToAndPlay ( float time ) : void
time float
Résultat void

isValid() public abstract méthode

subclasses should return true if they are a valid and ready to be added to the list of running tweens or false if not ready. technically, this should be marked as internal
public abstract isValid ( ) : bool
Résultat bool

onBegin() protected méthode

called whenever the tween is updated and the playhead is at the start (or end, depending on isReversed) of the tween.
protected onBegin ( ) : void
Résultat void

onComplete() protected méthode

called when the tween completes playing.
protected onComplete ( ) : void
Résultat void

onInit() protected méthode

called once per tween when it is first updated
protected onInit ( ) : void
Résultat void

onIterationEnd() protected méthode

called once per iteration at the end of the iteration.
protected onIterationEnd ( ) : void
Résultat void

onIterationStart() protected méthode

called once per iteration at the start of the iteration.
protected onIterationStart ( ) : void
Résultat void

onUpdate() protected méthode

called once per update, after the update has occured.
protected onUpdate ( ) : void
Résultat void

pause() public méthode

pauses playback
public pause ( ) : void
Résultat void

play() public méthode

resumes playback
public play ( ) : void
Résultat void

playBackwards() public méthode

plays the tween backwards. if it is already playing backwards has no effect
public playBackwards ( ) : void
Résultat void

playForward() public méthode

plays the tween forward. if it is already playing forward has no effect
public playForward ( ) : void
Résultat void

removeTweenProperty() public abstract méthode

attempts to remove the tween property returning true if successful technically, this should be marked as internal
public abstract removeTweenProperty ( AbstractTweenProperty, property ) : bool
property AbstractTweenProperty,
Résultat bool

reset() protected méthode

resets the tween to the beginning, taking isReversed into account.
protected reset ( ) : void
Résultat void

restart() public méthode

rewinds the tween to the beginning (or end, depending on isReversed) and starts playback, optionally skipping delay (only relevant for Tweens).
public restart ( bool skipDelay = true ) : void
skipDelay bool
Résultat void

reverse() public méthode

reverses playback. if going forward it will be going backward after this and vice versa.
public reverse ( ) : void
Résultat void

rewind() public méthode

rewinds the tween to the beginning (or end, depending on isReversed) and pauses playback.
public rewind ( ) : void
Résultat void

setOnBeginHandler() public méthode

public setOnBeginHandler ( Action onBegin ) : void
onBegin Action
Résultat void

setOnCompleteHandler() public méthode

public setOnCompleteHandler ( Action onComplete ) : void
onComplete Action
Résultat void

setOnInitHandler() public méthode

public setOnInitHandler ( Action onInit ) : void
onInit Action
Résultat void

setOnUpdateHandler() public méthode

public setOnUpdateHandler ( Action onUpdate ) : void
onUpdate Action
Résultat void

setonIterationEndHandler() public méthode

public setonIterationEndHandler ( Action onIterationEnd ) : void
onIterationEnd Action
Résultat void

setonIterationStartHandler() public méthode

public setonIterationStartHandler ( Action onIterationStart ) : void
onIterationStart Action
Résultat void

update() public méthode

tick method. if it returns true it indicates the tween is complete. note: at it's base, AbstractGoTween does not fire events, it is up to the implementer to do so. see GoTween and AbstractGoTweenCollection for examples.
public update ( float deltaTime ) : bool
deltaTime float
Résultat bool

waitForCompletion() public méthode

waits for either completion or destruction. call in a Coroutine and yield on the return
public waitForCompletion ( ) : IEnumerator
Résultat IEnumerator

Property Details

_completedIterations protected_oe property

protected int _completedIterations
Résultat int

_deltaIterations protected_oe property

protected int _deltaIterations
Résultat int

_didBegin protected_oe property

protected bool _didBegin
Résultat bool

_didInit protected_oe property

protected bool _didInit
Résultat bool

_didIterateLastFrame protected_oe property

protected bool _didIterateLastFrame
Résultat bool

_didIterateThisFrame protected_oe property

protected bool _didIterateThisFrame
Résultat bool

_elapsedTime protected_oe property

protected float _elapsedTime
Résultat float

_fireIterationEnd protected_oe property

protected bool _fireIterationEnd
Résultat bool

_fireIterationStart protected_oe property

protected bool _fireIterationStart
Résultat bool

_isLoopingBackOnPingPong protected_oe property

protected bool _isLoopingBackOnPingPong
Résultat bool

_onBegin protected_oe property

protected Action _onBegin
Résultat Action

_onComplete protected_oe property

protected Action _onComplete
Résultat Action

_onInit protected_oe property

protected Action _onInit
Résultat Action

_onIterationEnd protected_oe property

protected Action _onIterationEnd
Résultat Action

_onIterationStart protected_oe property

protected Action _onIterationStart
Résultat Action

_onUpdate protected_oe property

protected Action _onUpdate
Résultat Action

_totalElapsedTime protected_oe property

protected float _totalElapsedTime
Résultat float

id public_oe property

public int id
Résultat int