C# 클래스 WarTornLands.Entities.Modules.Draw.Animation

Class to hold a Animation, whcih is a set of Frames
파일 보기 프로젝트 열기: floAr/WarTornLands 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

AddFrame() 공개 메소드

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

AddFrame() 공개 메소드

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.
리턴 void

AddFrameAt() 공개 메소드

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.
리턴 void

AddFrameAt() 공개 메소드

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

AddOffset() 공개 메소드

public AddOffset ( float offsetMS ) : void
offsetMS float
리턴 void

Animation() 공개 메소드

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

Animation() 공개 메소드

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.
리턴 System

Reset() 공개 메소드

Resets this instance.
public Reset ( ) : void
리턴 void

Update() 공개 메소드

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