C# Class WarTornLands.Entities.Modules.Draw.Animation

Class to hold a Animation, whcih is a set of Frames
Afficher le fichier Open project: floAr/WarTornLands Class Usage Examples

Méthodes publiques

Méthode Description
AddFrame ( Rectangle frame ) : void

Adds a frame.

AddFrame ( Rectangle frame, float duration ) : void

Adds a frame with a certain duration.

AddFrameAt ( Rectangle frame, float duration, int position ) : void

Adds the frame with a certain duration at.

AddFrameAt ( Rectangle frame, int position ) : void

Adds the frame at.

AddOffset ( float offsetMS ) : void
Animation ( string name ) : System

Initializes a new instance of the Animation class.

Animation ( string name, Animation followUp ) : System

Initializes a new non repeating instance of the Animation class.

Reset ( ) : void

Resets this instance.

Update ( GameTime gameTime ) : void

Updates the animation with the specified game time.

Method Details

AddFrame() public méthode

Adds a frame.
public AddFrame ( Rectangle frame ) : void
frame Microsoft.Xna.Framework.Rectangle The frame.
Résultat void

AddFrame() public méthode

Adds a frame with a certain duration.
public AddFrame ( Rectangle frame, float duration ) : void
frame Microsoft.Xna.Framework.Rectangle The frame.
duration float The duration.
Résultat void

AddFrameAt() public méthode

Adds the frame with a certain duration at.
public AddFrameAt ( Rectangle frame, float duration, int position ) : void
frame Microsoft.Xna.Framework.Rectangle The frame.
duration float The duration.
position int The position.
Résultat void

AddFrameAt() public méthode

Adds the frame at.
public AddFrameAt ( Rectangle frame, int position ) : void
frame Microsoft.Xna.Framework.Rectangle The frame.
position int The position.
Résultat void

AddOffset() public méthode

public AddOffset ( float offsetMS ) : void
offsetMS float
Résultat void

Animation() public méthode

Initializes a new instance of the Animation class.
public Animation ( string name ) : System
name string The name.
Résultat System

Animation() public méthode

Initializes a new non repeating instance of the Animation class.
public Animation ( string name, Animation followUp ) : System
name string The name.
followUp Animation The follow up animation.
Résultat System

Reset() public méthode

Resets this instance.
public Reset ( ) : void
Résultat void

Update() public méthode

Updates the animation with the specified game time.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime The game time.
Résultat void