C# Class SunsetHigh.ScreenTransition

Handles the fade in and out between different screens or scenes.
Exibir arquivo Open project: ErraticUnicorn/MOSH

Public Methods

Method Description
draw ( SpriteBatch sb ) : void
isTransitioning ( ) : bool
loadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
requestSimpleTransition ( GameState stateChange ) : void
requestTransition ( System.Action action ) : void

Starts a fade out. The given Action is a delegate for whatever should be executed between the fade out and fade in (e.g. load a new screen).

update ( float elapsed ) : void

Method Details

draw() public static method

public static draw ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

isTransitioning() public static method

public static isTransitioning ( ) : bool
return bool

loadContent() public static method

public static loadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
return void

requestSimpleTransition() public static method

public static requestSimpleTransition ( GameState stateChange ) : void
stateChange GameState
return void

requestTransition() public static method

Starts a fade out. The given Action is a delegate for whatever should be executed between the fade out and fade in (e.g. load a new screen).
public static requestTransition ( System.Action action ) : void
action System.Action
return void

update() public static method

public static update ( float elapsed ) : void
elapsed float
return void