C# Class FlatRedBall.Utilities.CustomBehaviorFunctions

Static class containing a collection of common methods used as CustomBehaviors.
显示文件 Open project: vchelaru/FlatRedBall

Public Methods

Method Description
RemoveWhenAlphaIs1 ( Sprite si ) : void

Removes the argument Sprite if it is opaque.

This method is commonly used with Sprites which have a positive AlphaRate and which should be removed when completely visible.

RemoveWhenInvisible ( Sprite sprite ) : void

Removes the argument Sprite when its Alpha equals 0.

RemoveWhenJustCycled ( Sprite sprite ) : void

Removes teh argument Sprite after it cycles its AnimationChain.

RemoveWhenOutsideOfScreen ( Sprite sprite ) : void

Removes the argument Sprite when it is outside of the default Camera's view (SpriteManager.Camera).

Method Details

RemoveWhenAlphaIs1() public static method

Removes the argument Sprite if it is opaque.
This method is commonly used with Sprites which have a positive AlphaRate and which should be removed when completely visible.
public static RemoveWhenAlphaIs1 ( Sprite si ) : void
si Sprite Sprite to remove.
return void

RemoveWhenInvisible() public static method

Removes the argument Sprite when its Alpha equals 0.
public static RemoveWhenInvisible ( Sprite sprite ) : void
sprite Sprite The Sprite to remove.
return void

RemoveWhenJustCycled() public static method

Removes teh argument Sprite after it cycles its AnimationChain.
public static RemoveWhenJustCycled ( Sprite sprite ) : void
sprite Sprite The Sprite to remove.
return void

RemoveWhenOutsideOfScreen() public static method

Removes the argument Sprite when it is outside of the default Camera's view (SpriteManager.Camera).
public static RemoveWhenOutsideOfScreen ( Sprite sprite ) : void
sprite Sprite The Sprite to remove.
return void