C# 클래스 Myre.StateManagement.Transition

A class which represents a transition.
파일 보기 프로젝트 열기: martindevans/Myre

공개 메소드들

메소드 설명
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.

메소드 상세

MoveOff() 공개 메소드

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

MoveOn() 공개 메소드

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

Transition() 공개 메소드

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.
리턴 System

Transition() 공개 메소드

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.
리턴 System

Update() 공개 메소드

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