C# 클래스 WaveEngine.Components.Animation.AnimationBase

상속: Behavior
파일 보기 프로젝트 열기: WaveEngine/Components

보호된 프로퍼티들

프로퍼티 타입 설명
keyFrameEvents Dictionary>

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
AddKeyFrameEvent ( string animation, int keyFrame ) : AnimationBase

Adds a key frame event to a given animation.

AddKeyFrameEvent ( string animation, int keyFrame, string tag ) : AnimationBase

Adds a key frame event to a given animation.

AnimationBase ( string name ) : System

Initializes a new instance of the AnimationBase class.

ClearKeyFrameEvents ( string animation ) : AnimationBase

Clears all the key frame events of a given animation.

PlayAnimation ( string name ) : void

Plays the animation.

PlayAnimation ( string name, bool loop ) : void

Plays the animation.

PlayAnimation ( string name, bool loop, bool backwards ) : void

Plays the animation.

PlayAnimation ( string name, int startFrame, int endFrame ) : void

Plays the animation between the specified frames.

PlayAnimation ( string name, int startFrame, int endFrame, bool loop, bool backwards ) : void

Plays the animation between the specified frames.

ResumeAnimation ( ) : void

Resume the animation.

StopAnimation ( ) : void

Stops the animation.

보호된 메소드들

메소드 설명
DefaultValues ( ) : void

The default values

메소드 상세

AddKeyFrameEvent() 공개 메소드

Adds a key frame event to a given animation.
public AddKeyFrameEvent ( string animation, int keyFrame ) : AnimationBase
animation string /// The animation name. ///
keyFrame int /// The key frame when the event will be raised. ///
리턴 AnimationBase

AddKeyFrameEvent() 공개 메소드

Adds a key frame event to a given animation.
public AddKeyFrameEvent ( string animation, int keyFrame, string tag ) : AnimationBase
animation string /// The animation name. ///
keyFrame int /// The key frame when the event will be raised. ///
tag string /// The tag associated with the event. ///
리턴 AnimationBase

AnimationBase() 공개 메소드

Initializes a new instance of the AnimationBase class.
public AnimationBase ( string name ) : System
name string Name of this instance.
리턴 System

ClearKeyFrameEvents() 공개 메소드

Clears all the key frame events of a given animation.
public ClearKeyFrameEvents ( string animation ) : AnimationBase
animation string /// The animation name. ///
리턴 AnimationBase

DefaultValues() 보호된 메소드

The default values
protected DefaultValues ( ) : void
리턴 void

PlayAnimation() 공개 메소드

Plays the animation.
public PlayAnimation ( string name ) : void
name string /// The name of the animation. ///
리턴 void

PlayAnimation() 공개 메소드

Plays the animation.
public PlayAnimation ( string name, bool loop ) : void
name string /// The name of the animation. ///
loop bool /// if set to true loop the animation. ///
리턴 void

PlayAnimation() 공개 메소드

Plays the animation.
public PlayAnimation ( string name, bool loop, bool backwards ) : void
name string /// The name of the animation. ///
loop bool /// if set to true loop the animation. ///
backwards bool /// if set to true play the animation backwards. ///
리턴 void

PlayAnimation() 공개 메소드

Plays the animation between the specified frames.
public PlayAnimation ( string name, int startFrame, int endFrame ) : void
name string /// The name of the animation. ///
startFrame int /// The frame where the animation starts playing. ///
endFrame int /// The last frame of the animation to play. ///
리턴 void

PlayAnimation() 공개 추상적인 메소드

Plays the animation between the specified frames.
public abstract PlayAnimation ( string name, int startFrame, int endFrame, bool loop, bool backwards ) : void
name string /// The name of the animation. ///
startFrame int /// The frame where the animation starts playing. ///
endFrame int /// The last frame of the animation to play. ///
loop bool /// if set to true loop the animation. ///
backwards bool /// if set to true play the animation backwards. ///
리턴 void

ResumeAnimation() 공개 추상적인 메소드

Resume the animation.
public abstract ResumeAnimation ( ) : void
리턴 void

StopAnimation() 공개 추상적인 메소드

Stops the animation.
public abstract StopAnimation ( ) : void
리턴 void

프로퍼티 상세

keyFrameEvents 보호되어 있는 프로퍼티

The key frame events.
protected Dictionary> keyFrameEvents
리턴 Dictionary>