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

Class to hold a Animation, whcih is a set of Frames
Mostrar archivo Open project: floAr/WarTornLands Class Usage Examples

Public Methods

Method 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 method

Adds a frame.
public AddFrame ( Rectangle frame ) : void
frame Microsoft.Xna.Framework.Rectangle The frame.
return void

AddFrame() public method

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.
return void

AddFrameAt() public method

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.
return void

AddFrameAt() public method

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

AddOffset() public method

public AddOffset ( float offsetMS ) : void
offsetMS float
return void

Animation() public method

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

Animation() public method

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.
return System

Reset() public method

Resets this instance.
public Reset ( ) : void
return void

Update() public method

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