C# 클래스 SparrowSharp.Display.MovieClip

상속: Image, IAnimatable
파일 보기 프로젝트 열기: fmotagarcia/sparrow-sharp

공개 프로퍼티들

프로퍼티 타입 설명
Loop bool

공개 메소드들

메소드 설명
AddFrame ( Texture texture ) : void

Adds a frame to the end of the animation with a certain texture, using the default duration (1/fps).

AddFrame ( Texture texture, float duration ) : void

Adds a frame with a certain texture and duration.

AddFrame ( Texture texture, int position ) : void

Inserts a frame at the specified position. The successors will move down.

AddFrame ( Texture texture, int position, float duration, object sound = null ) : void

Adds a frame with a certain texture, duration and sound.

AdvanceTime ( float seconds ) : void
GetDurationAt ( int position ) : float

Returns the duration (in seconds) of a frame at a certain position.

GetTextureAt ( int position ) : Texture

Returns the texture of a frame at a certain position.

MovieClip ( IList textures, float fps ) : System

Initializes a MovieClip with an array of textures and the default number of frames per second.

MovieClip ( Texture texture, float fps ) : System

Initializes a movie with the first frame and the default number of frames per second.

Pause ( ) : void

Pause playback.

Play ( ) : void

Start playback. Beware that the clip has to be added to a Juggler too!

RemoveFrameAt ( int position ) : void

Removes the frame at the specified position. The successors will move up.

RemoveFromJuggler ( ) : void

Removes this object from its juggler(s) (if it has one)

SetDuration ( float duration, int position ) : void

Sets the duration of a certain frame in seconds.

SetSoundAt ( object sound, int position ) : void

Sets the sound that will be played back when a certain frame is active.

SetTexture ( Texture texture, int position ) : void

Sets the texture of a certain frame.

Stop ( ) : void

Stop playback. Resets currentFrame to beginning.

비공개 메소드들

메소드 설명
PlayCurrentSound ( ) : void
UpdateCurrentFrame ( ) : void

메소드 상세

AddFrame() 공개 메소드

Adds a frame to the end of the animation with a certain texture, using the default duration (1/fps).
public AddFrame ( Texture texture ) : void
texture Sparrow.Textures.Texture
리턴 void

AddFrame() 공개 메소드

Adds a frame with a certain texture and duration.
public AddFrame ( Texture texture, float duration ) : void
texture Sparrow.Textures.Texture
duration float
리턴 void

AddFrame() 공개 메소드

Inserts a frame at the specified position. The successors will move down.
public AddFrame ( Texture texture, int position ) : void
texture Sparrow.Textures.Texture
position int
리턴 void

AddFrame() 공개 메소드

Adds a frame with a certain texture, duration and sound.
public AddFrame ( Texture texture, int position, float duration, object sound = null ) : void
texture Sparrow.Textures.Texture
position int
duration float
sound object
리턴 void

AdvanceTime() 공개 메소드

public AdvanceTime ( float seconds ) : void
seconds float
리턴 void

GetDurationAt() 공개 메소드

Returns the duration (in seconds) of a frame at a certain position.
public GetDurationAt ( int position ) : float
position int
리턴 float

GetTextureAt() 공개 메소드

Returns the texture of a frame at a certain position.
public GetTextureAt ( int position ) : Texture
position int
리턴 Sparrow.Textures.Texture

MovieClip() 공개 메소드

Initializes a MovieClip with an array of textures and the default number of frames per second.
public MovieClip ( IList textures, float fps ) : System
textures IList
fps float
리턴 System

MovieClip() 공개 메소드

Initializes a movie with the first frame and the default number of frames per second.
public MovieClip ( Texture texture, float fps ) : System
texture Sparrow.Textures.Texture
fps float
리턴 System

Pause() 공개 메소드

Pause playback.
public Pause ( ) : void
리턴 void

Play() 공개 메소드

Start playback. Beware that the clip has to be added to a Juggler too!
public Play ( ) : void
리턴 void

RemoveFrameAt() 공개 메소드

Removes the frame at the specified position. The successors will move up.
public RemoveFrameAt ( int position ) : void
position int
리턴 void

RemoveFromJuggler() 공개 메소드

Removes this object from its juggler(s) (if it has one)
public RemoveFromJuggler ( ) : void
리턴 void

SetDuration() 공개 메소드

Sets the duration of a certain frame in seconds.
public SetDuration ( float duration, int position ) : void
duration float
position int
리턴 void

SetSoundAt() 공개 메소드

Sets the sound that will be played back when a certain frame is active.
public SetSoundAt ( object sound, int position ) : void
sound object
position int
리턴 void

SetTexture() 공개 메소드

Sets the texture of a certain frame.
public SetTexture ( Texture texture, int position ) : void
texture Sparrow.Textures.Texture
position int
리턴 void

Stop() 공개 메소드

Stop playback. Resets currentFrame to beginning.
public Stop ( ) : void
리턴 void

프로퍼티 상세

Loop 공개적으로 프로퍼티

Indicates if the movie is looping.
public bool Loop
리턴 bool