C# Class GPSTD_RM.AnimatedSprite

This class represents a set of animation loops.
Show file Open project: dideler/gps-tower-defense Class Usage Examples

Public Methods

Method Description
AnimatedSprite ( AnimationLoop loops ) : System

Create a sprite with an array of loops.

GetLoop ( string loopName ) : AnimationLoop

Returns the animation loop that matches up with the loop name.

SpriteFromFile ( string filename, GraphicsDevice gDev ) : AnimatedSprite

Read a file that specifies each of the animation loops.

Method Details

AnimatedSprite() public method

Create a sprite with an array of loops.
public AnimatedSprite ( AnimationLoop loops ) : System
loops AnimationLoop An array of loops.
return System

GetLoop() public method

Returns the animation loop that matches up with the loop name.
public GetLoop ( string loopName ) : AnimationLoop
loopName string The loop you're looking for.
return AnimationLoop

SpriteFromFile() public static method

Read a file that specifies each of the animation loops.
public static SpriteFromFile ( string filename, GraphicsDevice gDev ) : AnimatedSprite
filename string The file specifying the sprite.
gDev GraphicsDevice
return AnimatedSprite