C# Class vimage.AnimatedImage

Inheritance: DisplayObject
Show file Open project: Torrunt/vimage

Public Properties

Property Type Description
CurrentFrame int
CurrentTime float
DEFAULT_FRAME_DURATION int
Data AnimatedImageData
Finished bool
Playing bool
Sprite SFML.Graphics.Sprite

Public Methods

Method Description
AnimatedImage ( AnimatedImageData data ) : System
GotoAndPlay ( int number ) : void
GotoAndStop ( int number ) : void
NextFrame ( ) : void
Play ( ) : void
PrevFrame ( ) : void
SetFrame ( int number ) : bool
Stop ( ) : void
Update ( float dt ) : bool

Method Details

AnimatedImage() public method

public AnimatedImage ( AnimatedImageData data ) : System
data AnimatedImageData
return System

GotoAndPlay() public method

public GotoAndPlay ( int number ) : void
number int
return void

GotoAndStop() public method

public GotoAndStop ( int number ) : void
number int
return void

NextFrame() public method

public NextFrame ( ) : void
return void

Play() public method

public Play ( ) : void
return void

PrevFrame() public method

public PrevFrame ( ) : void
return void

SetFrame() public method

public SetFrame ( int number ) : bool
number int
return bool

Stop() public method

public Stop ( ) : void
return void

Update() public method

public Update ( float dt ) : bool
dt float
return bool

Property Details

CurrentFrame public property

public int CurrentFrame
return int

CurrentTime public property

Keeps track of when to change frame. Resets on frame change.
public float CurrentTime
return float

DEFAULT_FRAME_DURATION public static property

Default Frame Duration for animated image that don't define it.
public static int DEFAULT_FRAME_DURATION
return int

Data public property

public AnimatedImageData,vimage Data
return AnimatedImageData

Finished public property

public bool Finished
return bool

Playing public property

public bool Playing
return bool

Sprite public property

public Sprite,SFML.Graphics Sprite
return SFML.Graphics.Sprite