C# Класс WaveEngine.Components.Animation.AnimationBase

Наследование: Behavior
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
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>