C# Class FAnimatedSprite, FutileAdditionalClasses

Inheritance: FSprite
Show file Open project: mattfox12/FutileAdditionalClasses Class Usage Examples

Protected Properties

Property Type Description
_animations List
_baseExtension string
_baseName string
_currentAnim FAnimation,
_currentFrame int
_pause bool
_time float

Private Properties

Property Type Description
FAnimatedSprite System

Public Methods

Method Description
FAnimatedSprite ( string elementBase ) : System
Update ( ) : void
addAnimation ( FAnimation, anim ) : void
pause ( bool forced = false ) : void
play ( string animName, bool forced = false ) : void

Private Methods

Method Description
FAnimatedSprite ( string elementBase, string elementExtension ) : System

Method Details

FAnimatedSprite() public method

public FAnimatedSprite ( string elementBase ) : System
elementBase string
return System

Update() public method

public Update ( ) : void
return void

addAnimation() public method

public addAnimation ( FAnimation, anim ) : void
anim FAnimation,
return void

pause() public method

public pause ( bool forced = false ) : void
forced bool
return void

play() public method

public play ( string animName, bool forced = false ) : void
animName string
forced bool
return void

Property Details

_animations protected property

protected List _animations
return List

_baseExtension protected property

protected string _baseExtension
return string

_baseName protected property

protected string _baseName
return string

_currentAnim protected property

protected FAnimation, _currentAnim
return FAnimation,

_currentFrame protected property

protected int _currentFrame
return int

_pause protected property

protected bool _pause
return bool

_time protected property

protected float _time
return float