C# Class Nez.Tweens.TweenManager

Inheritance: IUpdatableManager
Show file Open project: prime31/Nez Class Usage Examples

Public Properties

Property Type Description
cacheColorTweens bool
cacheFloatTweens bool
cacheIntTweens bool
cacheQuaternionTweens bool
cacheRectTweens bool
cacheVector2Tweens bool
cacheVector3Tweens bool
cacheVector4Tweens bool
defaultEaseType EaseType
removeAllTweensOnLevelLoad bool

Public Methods

Method Description
TweenManager ( ) : System.Collections.Generic
addTween ( ITweenable tween ) : void

adds a tween to the active tweens list

allTweensWithContext ( object context ) : List

returns all the tweens that have a specific context. Tweens are returned as ITweenable since that is all that TweenManager knows about.

allTweensWithTarget ( object target ) : List

returns all the tweens that have a specific target. Tweens are returned as ITweenControl since that is all that TweenManager knows about.

removeTween ( ITweenable tween ) : void

removes a tween from the active tweens list

stopAllTweens ( bool bringToCompletion = false ) : void

stops all tweens optionlly bringing them all to completion

stopAllTweensWithContext ( object context, bool bringToCompletion = false ) : void

stops all the tweens with a given context

stopAllTweensWithTarget ( object target, bool bringToCompletion = false ) : void

stops all the tweens that have a specific target that TweenManager knows about.

Private Methods

Method Description
IUpdatableManager ( ) : void

Method Details

TweenManager() public method

public TweenManager ( ) : System.Collections.Generic
return System.Collections.Generic

addTween() public static method

adds a tween to the active tweens list
public static addTween ( ITweenable tween ) : void
tween ITweenable Tween.
return void

allTweensWithContext() public static method

returns all the tweens that have a specific context. Tweens are returned as ITweenable since that is all that TweenManager knows about.
public static allTweensWithContext ( object context ) : List
context object Context.
return List

allTweensWithTarget() public static method

returns all the tweens that have a specific target. Tweens are returned as ITweenControl since that is all that TweenManager knows about.
public static allTweensWithTarget ( object target ) : List
target object target.
return List

removeTween() public static method

removes a tween from the active tweens list
public static removeTween ( ITweenable tween ) : void
tween ITweenable Tween.
return void

stopAllTweens() public static method

stops all tweens optionlly bringing them all to completion
public static stopAllTweens ( bool bringToCompletion = false ) : void
bringToCompletion bool If set to true bring to completion.
return void

stopAllTweensWithContext() public static method

stops all the tweens with a given context
public static stopAllTweensWithContext ( object context, bool bringToCompletion = false ) : void
context object Context.
bringToCompletion bool
return void

stopAllTweensWithTarget() public static method

stops all the tweens that have a specific target that TweenManager knows about.
public static stopAllTweensWithTarget ( object target, bool bringToCompletion = false ) : void
target object target.
bringToCompletion bool
return void

Property Details

cacheColorTweens public static property

public static bool cacheColorTweens
return bool

cacheFloatTweens public static property

public static bool cacheFloatTweens
return bool

cacheIntTweens public static property

automatic caching of various types is supported here. Note that caching will only work when using extension methods to start the tweens or if you fetch a tween from the cache when doing custom tweens. See the extension method implementations for how to fetch a cached tween.
public static bool cacheIntTweens
return bool

cacheQuaternionTweens public static property

public static bool cacheQuaternionTweens
return bool

cacheRectTweens public static property

public static bool cacheRectTweens
return bool

cacheVector2Tweens public static property

public static bool cacheVector2Tweens
return bool

cacheVector3Tweens public static property

public static bool cacheVector3Tweens
return bool

cacheVector4Tweens public static property

public static bool cacheVector4Tweens
return bool

defaultEaseType public static property

public static EaseType defaultEaseType
return EaseType

removeAllTweensOnLevelLoad public static property

if true, the active tween list will be cleared when a new level loads
public static bool removeAllTweensOnLevelLoad
return bool