C# Class XnaFlixel.FlxGame

Inheritance: Microsoft.Xna.Framework.DrawableGameComponent
Datei anzeigen Open project: jsbeckr/XnaFlixel Class Usage Examples

Public Methods

Method Description
Draw ( GameTime gameTime ) : void
FlxGame ( ) : System

Constructor added for better usability of X-Flixel.

InitGame ( int GameSizeX, int GameSizeY, FlxState InitialState, Color BGColor, bool showFlixelLogo, Color logoColor ) : void
Initialize ( ) : void
SwitchState ( FlxState newscreen ) : void
Update ( GameTime gameTime ) : void

Protected Methods

Method Description
Help ( string X, string C, string Mouse, string Arrows ) : void
LoadContent ( ) : void
UnloadContent ( ) : void

Private Methods

Method Description
InitConsole ( ) : void
PauseGame ( ) : void

Internal function to help with basic pause game functionality.

ShowSoundTray ( ) : void
UnpauseGame ( ) : void

Internal function to help with basic pause game functionality.

Method Details

Draw() public method

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

FlxGame() public method

Constructor added for better usability of X-Flixel.
public FlxGame ( ) : System
return System

Help() protected method

protected Help ( string X, string C, string Mouse, string Arrows ) : void
X string
C string
Mouse string
Arrows string
return void

InitGame() public method

public InitGame ( int GameSizeX, int GameSizeY, FlxState InitialState, Color BGColor, bool showFlixelLogo, Color logoColor ) : void
GameSizeX int
GameSizeY int
InitialState FlxState
BGColor Color
showFlixelLogo bool
logoColor Color
return void

Initialize() public method

public Initialize ( ) : void
return void

LoadContent() protected method

protected LoadContent ( ) : void
return void

SwitchState() public method

public SwitchState ( FlxState newscreen ) : void
newscreen FlxState
return void

UnloadContent() protected method

protected UnloadContent ( ) : void
return void

Update() public method

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