C# Class MrGravity.Menu_Code.Controller

Afficher le fichier Open project: DizWARE/Mr-Gravity Class Usage Examples

Méthodes publiques

Méthode Description
Controller ( IControlScheme controlScheme, GraphicsDeviceManager graphics ) : Microsoft.Xna.Framework

Constructor for controller screen

Draw ( GameTime gametime, SpriteBatch spriteBatch, Matrix scale ) : void

Draws the controller screen

Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void

Loads images needed for this screen

Update ( GameTime gametime, GameStates &states ) : void

Update process of this screen. Responds to player input to go back to the options screen.

Method Details

Controller() public méthode

Constructor for controller screen
public Controller ( IControlScheme controlScheme, GraphicsDeviceManager graphics ) : Microsoft.Xna.Framework
controlScheme IControlScheme Player's method of control
graphics GraphicsDeviceManager Graphics manager for the game
Résultat Microsoft.Xna.Framework

Draw() public méthode

Draws the controller screen
public Draw ( GameTime gametime, SpriteBatch spriteBatch, Matrix scale ) : void
gametime Microsoft.Xna.Framework.GameTime Current gametime
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch Canvas the screen is drawing on
scale Microsoft.Xna.Framework.Matrix scale factor
Résultat void

Load() public méthode

Loads images needed for this screen
public Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager Content manager used for this game
Résultat void

Update() public méthode

Update process of this screen. Responds to player input to go back to the options screen.
public Update ( GameTime gametime, GameStates &states ) : void
gametime Microsoft.Xna.Framework.GameTime Current gameTime
states GameStates Current state of the game
Résultat void