C# Class WaveEngine.Components.GameActions.MoveTo2DGameAction

Game action which animates an 2D entity
Inheritance: Vector2AnimationGameAction
Show file Open project: WaveEngine/Components

Public Methods

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

Initializes a new instance of the MoveTo2DGameAction class.

Protected Methods

Method Description
PerformRun ( ) : void

Performs the run operation

Private Methods

Method Description
LocalMoveAction ( System.Vector2 delta ) : void

Move action

MoveAction ( System.Vector2 delta ) : void

Move action

Method Details

MoveTo2DGameAction() public method

Initializes a new instance of the MoveTo2DGameAction class.
public MoveTo2DGameAction ( System.Entity entity, System.Vector2 to, System.TimeSpan time, EaseFunction ease = EaseFunction.None, bool local = false ) : System
entity System.Entity The target entity
to System.Vector2 The target position
time System.TimeSpan Animation duration
ease EaseFunction The ease function
local bool If the position is in local coordinates.
return System

PerformRun() protected method

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