C# Class Myre.StateManagement.Transition

A class which represents a transition.
Show file Open project: martindevans/Myre

Public Methods

Method Description
MoveOff ( ) : void

Makes the transition move towards 0.

MoveOn ( ) : void

Makes the transition move towards 1.

Transition ( System.TimeSpan duration ) : System

Creates a new instance of the Transition class.

Transition ( System.TimeSpan onDuration, System.TimeSpan offDuration ) : System

Creates a new instance of the Transition class.

Update ( Microsoft.Xna.Framework.GameTime gameTime ) : void

Updates the transition.

Method Details

MoveOff() public method

Makes the transition move towards 0.
public MoveOff ( ) : void
return void

MoveOn() public method

Makes the transition move towards 1.
public MoveOn ( ) : void
return void

Transition() public method

Creates a new instance of the Transition class.
public Transition ( System.TimeSpan duration ) : System
duration System.TimeSpan The time taken to transition on or off.
return System

Transition() public method

Creates a new instance of the Transition class.
public Transition ( System.TimeSpan onDuration, System.TimeSpan offDuration ) : System
onDuration System.TimeSpan The time taken to transition from 0 to 1.
offDuration System.TimeSpan The time taken to transition from 1 to 0.
return System

Update() public method

Updates the transition.
public Update ( Microsoft.Xna.Framework.GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Game time.
return void