C# Class WaveEngine.Components.GameActions.RotateTo2DGameAction

Game action that performs a rotating animation to a 2D entity
Inheritance: FloatAnimationGameAction
Exibir arquivo Open project: WaveEngine/Components

Public Methods

Method Description
RotateTo2DGameAction ( System.Entity entity, float to, System.TimeSpan time, EaseFunction ease = EaseFunction.None, bool local = false ) : System

Initializes a new instance of the RotateTo2DGameAction class.

Protected Methods

Method Description
PerformRun ( ) : void

Performs the run operation

Private Methods

Method Description
LocalRotateAction ( float delta ) : void

The local rotate method

RotateAction ( float delta ) : void

The rotate method

Method Details

PerformRun() protected method

Performs the run operation
protected PerformRun ( ) : void
return void

RotateTo2DGameAction() public method

Initializes a new instance of the RotateTo2DGameAction class.
public RotateTo2DGameAction ( System.Entity entity, float to, System.TimeSpan time, EaseFunction ease = EaseFunction.None, bool local = false ) : System
entity System.Entity The target entity
to float The target angle
time System.TimeSpan Animation duration
ease EaseFunction The ease function
local bool If the rotation is local
return System