C# Class WaveEngine.Components.GameActions.FloatAnimationGameAction

Game action of a single float value
Inheritance: UpdatableGameAction
Show file Open project: WaveEngine/Components

Protected Properties

Property Type Description
from float
to float
updateAction Action

Public Methods

Method Description
BackInEase ( float t, float b, float c, float d ) : float

Back in ease function

BackInOutEase ( float t, float b, float c, float d ) : float

Back in and out ease function

BackOutEase ( float t, float b, float c, float d ) : float

Back out ease function

BounceInEase ( float t, float b, float c, float d ) : float

Bounce in ease function

BounceInOutEase ( float t, float b, float c, float d ) : float

Bounce in and out ease function

BounceOutEase ( float t, float b, float c, float d ) : float

Bounce out ease function

CircleInEase ( float t, float b, float c, float d ) : float

Circle in ease function

CircleInOutEase ( float t, float b, float c, float d ) : float

Circle in and out ease function

CircleOutEase ( float t, float b, float c, float d ) : float

Circle out ease function

CubicInEase ( float t, float b, float c, float d ) : float

Cubic in ease function

CubicInOutEase ( float t, float b, float c, float d ) : float

Cubi in and out ease function

CubicOutEase ( float t, float b, float c, float d ) : float

Cubic out ease function

DeltaFunction ( EaseFunction function, float from, float to, float time, float totalTime ) : float

Delta Function method

ElasticInEase ( float t, float b, float c, float d ) : float

Elastic in ease function

ElasticInOutEase ( float t, float b, float c, float d ) : float

Elastic in and out ease function

ElasticOutEase ( float t, float b, float c, float d ) : float

Elastic out ease function

ExponentialInEase ( float t, float b, float c, float d ) : float

Exponential in ease function

ExponentialInOutEase ( float t, float b, float c, float d ) : float

Exponential in and out ease function

ExponentialOutEase ( float t, float b, float c, float d ) : float

Exponential out ease function

FloatAnimationGameAction ( System.Entity entity, float from, float to, System.TimeSpan time, EaseFunction ease, Action updateAction ) : System

Initializes a new instance of the FloatAnimationGameAction class.

LinearStep ( float from, float to, float lerp ) : float

Smooth Step method

QuadraticInEase ( float t, float b, float c, float d ) : float

Quadratic in ease function

QuadraticInOutEase ( float t, float b, float c, float d ) : float

Quadratic in and out ease function

QuadraticOutEase ( float t, float b, float c, float d ) : float

Quadratic out ease function

QuarticInEase ( float t, float b, float c, float d ) : float

Quartic in ease function

QuarticInOutEase ( float t, float b, float c, float d ) : float

Quartic in and out ease function

QuarticOutEase ( float t, float b, float c, float d ) : float

Quartic out ease function

QuinticInEase ( float t, float b, float c, float d ) : float

Quintic in ease function

QuinticInOutEase ( float t, float b, float c, float d ) : float

Quintic in and out ease function

QuinticOutEase ( float t, float b, float c, float d ) : float

Quintic out ease function

SineInEase ( float t, float b, float c, float d ) : float

Sine in ease function

SineInOutEase ( float t, float b, float c, float d ) : float

Sine in and out ease function

SineOutEase ( float t, float b, float c, float d ) : float

Sine out ease function

Update ( System.TimeSpan gameTime ) : void

Updates the single game action

Protected Methods

Method Description
FloatAnimationGameAction ( System.Entity entity, float from, float to, System.TimeSpan time, EaseFunction ease ) : System

Initializes a new instance of the FloatAnimationGameAction class.

PerformCancel ( ) : void

Cancels the game action

PerformRun ( ) : void

Ons the run.

PerformSkip ( ) : bool

Notifies the skip.

Private Methods

Method Description
AssignValueTo ( float value ) : void

Assign value to method

Method Details

BackInEase() public method

Back in ease function
public BackInEase ( float t, float b, float c, float d ) : float
t float Current time
b float Start value
c float End value
d float Animation duration
return float

BackInOutEase() public method

Back in and out ease function
public BackInOutEase ( float t, float b, float c, float d ) : float
t float Current time
b float Start value
c float End value
d float Animation duration
return float

BackOutEase() public method

Back out ease function
public BackOutEase ( float t, float b, float c, float d ) : float
t float Current time
b float Start value
c float End value
d float Animation duration
return float

BounceInEase() public method

Bounce in ease function
public BounceInEase ( float t, float b, float c, float d ) : float
t float Current time
b float Start value
c float End value
d float Animation duration
return float

BounceInOutEase() public method

Bounce in and out ease function
public BounceInOutEase ( float t, float b, float c, float d ) : float
t float Current time
b float Start value
c float End value
d float Animation duration
return float

BounceOutEase() public method

Bounce out ease function
public BounceOutEase ( float t, float b, float c, float d ) : float
t float Current time
b float Start value
c float End value
d float Animation duration
return float

CircleInEase() public method

Circle in ease function
public CircleInEase ( float t, float b, float c, float d ) : float
t float Current time
b float Start value
c float End value
d float Animation duration
return float

CircleInOutEase() public method

Circle in and out ease function
public CircleInOutEase ( float t, float b, float c, float d ) : float
t float Current time
b float Start value
c float End value
d float Animation duration
return float

CircleOutEase() public method

Circle out ease function
public CircleOutEase ( float t, float b, float c, float d ) : float
t float Current time
b float Start value
c float End value
d float Animation duration
return float

CubicInEase() public method

Cubic in ease function
public CubicInEase ( float t, float b, float c, float d ) : float
t float Current time
b float Start value
c float End value
d float Animation duration
return float

CubicInOutEase() public method

Cubi in and out ease function
public CubicInOutEase ( float t, float b, float c, float d ) : float
t float Current time
b float Start value
c float End value
d float Animation duration
return float

CubicOutEase() public method

Cubic out ease function
public CubicOutEase ( float t, float b, float c, float d ) : float
t float Current time
b float Start value
c float End value
d float Animation duration
return float

DeltaFunction() public method

Delta Function method
public DeltaFunction ( EaseFunction function, float from, float to, float time, float totalTime ) : float
function EaseFunction
from float Start value
to float End value
time float Current time
totalTime float Animation duration
return float

ElasticInEase() public method

Elastic in ease function
public ElasticInEase ( float t, float b, float c, float d ) : float
t float Current time
b float Start value
c float End value
d float Animation duration
return float

ElasticInOutEase() public method

Elastic in and out ease function
public ElasticInOutEase ( float t, float b, float c, float d ) : float
t float Current time
b float Start value
c float End value
d float Animation duration
return float

ElasticOutEase() public method

Elastic out ease function
public ElasticOutEase ( float t, float b, float c, float d ) : float
t float Current time
b float Start value
c float End value
d float Animation duration
return float

ExponentialInEase() public method

Exponential in ease function
public ExponentialInEase ( float t, float b, float c, float d ) : float
t float Current time
b float Start value
c float End value
d float Animation duration
return float

ExponentialInOutEase() public method

Exponential in and out ease function
public ExponentialInOutEase ( float t, float b, float c, float d ) : float
t float Current time
b float Start value
c float End value
d float Animation duration
return float

ExponentialOutEase() public method

Exponential out ease function
public ExponentialOutEase ( float t, float b, float c, float d ) : float
t float Current time
b float Start value
c float End value
d float Animation duration
return float

FloatAnimationGameAction() protected method

Initializes a new instance of the FloatAnimationGameAction class.
protected FloatAnimationGameAction ( System.Entity entity, float from, float to, System.TimeSpan time, EaseFunction ease ) : System
entity System.Entity The entity
from float Initial value
to float End value
time System.TimeSpan The time of the animation
ease EaseFunction Easing function
return System

FloatAnimationGameAction() public method

Initializes a new instance of the FloatAnimationGameAction class.
public FloatAnimationGameAction ( System.Entity entity, float from, float to, System.TimeSpan time, EaseFunction ease, Action updateAction ) : System
entity System.Entity The entity
from float Initial value
to float End value
time System.TimeSpan The time of the animation
ease EaseFunction Easing function
updateAction Action The action when needs to be updated
return System

LinearStep() public method

Smooth Step method
public LinearStep ( float from, float to, float lerp ) : float
from float Initial value
to float End value
lerp float The lerp value
return float

PerformCancel() protected method

Cancels the game action
protected PerformCancel ( ) : void
return void

PerformRun() protected method

Ons the run.
protected PerformRun ( ) : void
return void

PerformSkip() protected method

Notifies the skip.
protected PerformSkip ( ) : bool
return bool

QuadraticInEase() public method

Quadratic in ease function
public QuadraticInEase ( float t, float b, float c, float d ) : float
t float Current time
b float Start value
c float End value
d float Animation duration
return float

QuadraticInOutEase() public method

Quadratic in and out ease function
public QuadraticInOutEase ( float t, float b, float c, float d ) : float
t float Current time
b float Start value
c float End value
d float Animation duration
return float

QuadraticOutEase() public method

Quadratic out ease function
public QuadraticOutEase ( float t, float b, float c, float d ) : float
t float Current time
b float Start value
c float End value
d float Animation duration
return float

QuarticInEase() public method

Quartic in ease function
public QuarticInEase ( float t, float b, float c, float d ) : float
t float Current time
b float Start value
c float End value
d float Animation duration
return float

QuarticInOutEase() public method

Quartic in and out ease function
public QuarticInOutEase ( float t, float b, float c, float d ) : float
t float Current time
b float Start value
c float End value
d float Animation duration
return float

QuarticOutEase() public method

Quartic out ease function
public QuarticOutEase ( float t, float b, float c, float d ) : float
t float Current time
b float Start value
c float End value
d float Animation duration
return float

QuinticInEase() public method

Quintic in ease function
public QuinticInEase ( float t, float b, float c, float d ) : float
t float Current time
b float Start value
c float End value
d float Animation duration
return float

QuinticInOutEase() public method

Quintic in and out ease function
public QuinticInOutEase ( float t, float b, float c, float d ) : float
t float Current time
b float Start value
c float End value
d float Animation duration
return float

QuinticOutEase() public method

Quintic out ease function
public QuinticOutEase ( float t, float b, float c, float d ) : float
t float Current time
b float Start value
c float End value
d float Animation duration
return float

SineInEase() public method

Sine in ease function
public SineInEase ( float t, float b, float c, float d ) : float
t float Current time
b float Start value
c float End value
d float Animation duration
return float

SineInOutEase() public method

Sine in and out ease function
public SineInOutEase ( float t, float b, float c, float d ) : float
t float Current time
b float Start value
c float End value
d float Animation duration
return float

SineOutEase() public method

Sine out ease function
public SineOutEase ( float t, float b, float c, float d ) : float
t float Current time
b float Start value
c float End value
d float Animation duration
return float

Update() public method

Updates the single game action
public Update ( System.TimeSpan gameTime ) : void
gameTime System.TimeSpan The ellapsed gameTime
return void

Property Details

from protected property

Initial value
protected float from
return float

to protected property

End value
protected float to
return float

updateAction protected property

The update action of the
protected Action updateAction
return Action