C# Class GPSTD_RM.AnimatedSprite

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

Méthodes publiques

Méthode 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 méthode

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

GetLoop() public méthode

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

SpriteFromFile() public static méthode

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
Résultat AnimatedSprite