C# Class Dodgeball.Engine.Animation

Show file Open project: schonstal/BLOODBALL

Public Properties

Property Type Description
currentFrame int
elapsed float
frameDelay float
frames List

Public Methods

Method Description
Animation ( List frames, int fps, bool looped ) : System
addAnimationCallback ( Action callback ) : void
addOnCompleteCallback ( Action callaback ) : void
getFrame ( ) : int
play ( ) : void
reset ( ) : void
start ( ) : void
stop ( ) : void

Method Details

Animation() public method

public Animation ( List frames, int fps, bool looped ) : System
frames List
fps int
looped bool
return System

addAnimationCallback() public method

public addAnimationCallback ( Action callback ) : void
callback Action
return void

addOnCompleteCallback() public method

public addOnCompleteCallback ( Action callaback ) : void
callaback Action
return void

getFrame() public method

public getFrame ( ) : int
return int

play() public method

public play ( ) : void
return void

reset() public method

public reset ( ) : void
return void

start() public method

public start ( ) : void
return void

stop() public method

public stop ( ) : void
return void

Property Details

currentFrame public property

public int currentFrame
return int

elapsed public property

public float elapsed
return float

frameDelay public property

public float frameDelay
return float

frames public property

public List frames
return List