C# Class Nez.Tweens.AbstractTweenable

AbstractTweenable serves as a base for any custom classes you might want to make that can be ticked. These differ from ITweens in that they dont implement the ITweenT interface. What does that mean? It just says that an AbstractTweenable is not just moving a value from start to finish. It can do anything at all that requires a tick each frame. The TweenChain is one example of AbstractTweenable for reference.
Inheritance: ITweenable
Show file Open project: prime31/Nez

Protected Properties

Property Type Description
_isCurrentlyManagedByTweenManager bool
_isPaused bool

Public Methods

Method Description
isRunning ( ) : bool
pause ( ) : void
recycleSelf ( ) : void
resume ( ) : void
start ( ) : void
stop ( bool bringToCompletion = false ) : void
tick ( ) : bool

Method Details

isRunning() public method

public isRunning ( ) : bool
return bool

pause() public method

public pause ( ) : void
return void

recycleSelf() public method

public recycleSelf ( ) : void
return void

resume() public method

public resume ( ) : void
return void

start() public method

public start ( ) : void
return void

stop() public method

public stop ( bool bringToCompletion = false ) : void
bringToCompletion bool
return void

tick() public abstract method

public abstract tick ( ) : bool
return bool

Property Details

_isCurrentlyManagedByTweenManager protected property

AbstractTweenable are often kept around after they complete. This flag lets them know internally if they are currently being tweened by TweenManager so that they can re-add themselves if necessary.
protected bool _isCurrentlyManagedByTweenManager
return bool

_isPaused protected property

protected bool _isPaused
return bool