C# Class Sharpex2D.Game

Inheritance: IUpdateable, IDrawable, IConstructable
Afficher le fichier Open project: ThuCommix/Sharpex2D Class Usage Examples

Méthodes publiques

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

Méthodes protégées

Méthode Description
Game ( ) : System

Initializes a new Game class.

Private Methods

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

Exits the game.
public Exit ( ) : void
Résultat void

Game() protected méthode

Initializes a new Game class.
protected Game ( ) : System
Résultat System

OnActivation() public méthode

Processes if the surface is activated.
public OnActivation ( ) : void
Résultat void

OnDeactivation() public méthode

Processes if the surface is deactivated.
public OnDeactivation ( ) : void
Résultat void

OnDrawing() public méthode

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

OnInitialize() public abstract méthode

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

OnLoadContent() public abstract méthode

Processes the Game load.
public abstract OnLoadContent ( ) : void
Résultat void

OnUnload() public méthode

Processes the Game unload.
public OnUnload ( ) : void
Résultat void

OnUpdate() public méthode

Updates the object.
public OnUpdate ( GameTime gameTime ) : void
gameTime GameTime The GameTime.
Résultat void

Restart() public méthode

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