C# Class SunsetHigh.ScreenTransition

Handles the fade in and out between different screens or scenes.
Afficher le fichier Open project: ErraticUnicorn/MOSH

Méthodes publiques

Méthode 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 méthode

public static draw ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat void

isTransitioning() public static méthode

public static isTransitioning ( ) : bool
Résultat bool

loadContent() public static méthode

public static loadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
Résultat void

requestSimpleTransition() public static méthode

public static requestSimpleTransition ( GameState stateChange ) : void
stateChange GameState
Résultat void

requestTransition() public static méthode

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
Résultat void

update() public static méthode

public static update ( float elapsed ) : void
elapsed float
Résultat void