C# Class Sharpex2D.Game

Inheritance: IUpdateable, IDrawable, IConstructable
显示文件 Open project: ThuCommix/Sharpex2D Class Usage Examples

Public Methods

Method Description
Exit ( ) : void

Exits the game.

OnActivation ( ) : void

Processes if the surface is activated.

OnDeactivation ( ) : void

Processes if the surface is deactivated.

OnDrawing ( SpriteBatch spriteBatch, GameTime gameTime ) : void

Processes a Render.

OnInitialize ( LaunchParameters launchParameters ) : EngineConfiguration

Processes the Game initialization.

OnLoadContent ( ) : void

Processes the Game load.

OnUnload ( ) : void

Processes the Game unload.

OnUpdate ( GameTime gameTime ) : void

Updates the object.

Restart ( LaunchParameters launchParameters ) : void

Restarts the Game with the specified LaunchParameters.

Protected Methods

Method Description
Game ( ) : System

Initializes a new Game class.

Private Methods

Method Description
IConstructable ( ) : void

Constructs the component.

IDrawable ( SpriteBatch spriteBatch, GameTime gameTime ) : void

Processes a Render.

IUpdateable ( GameTime gameTime ) : void

Updates the object.

Method Details

Exit() public method

Exits the game.
public Exit ( ) : void
return void

Game() protected method

Initializes a new Game class.
protected Game ( ) : System
return System

OnActivation() public method

Processes if the surface is activated.
public OnActivation ( ) : void
return void

OnDeactivation() public method

Processes if the surface is deactivated.
public OnDeactivation ( ) : void
return void

OnDrawing() public method

Processes a Render.
public OnDrawing ( SpriteBatch spriteBatch, GameTime gameTime ) : void
spriteBatch Sharpex2D.Rendering.SpriteBatch The SpriteBatch.
gameTime GameTime The GameTime.
return void

OnInitialize() public abstract method

Processes the Game initialization.
public abstract OnInitialize ( LaunchParameters launchParameters ) : EngineConfiguration
launchParameters Sharpex2D.GameService.LaunchParameters The LaunchParameters.
return EngineConfiguration

OnLoadContent() public abstract method

Processes the Game load.
public abstract OnLoadContent ( ) : void
return void

OnUnload() public method

Processes the Game unload.
public OnUnload ( ) : void
return void

OnUpdate() public method

Updates the object.
public OnUpdate ( GameTime gameTime ) : void
gameTime GameTime The GameTime.
return void

Restart() public method

Restarts the Game with the specified LaunchParameters.
public Restart ( LaunchParameters launchParameters ) : void
launchParameters Sharpex2D.GameService.LaunchParameters The LaunchParameters.
return void