C# Class MrGravity.Menu_Code.Controller

Exibir arquivo Open project: DizWARE/Mr-Gravity Class Usage Examples

Public Methods

Method 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 method

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
return Microsoft.Xna.Framework

Draw() public method

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
return void

Load() public method

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
return void

Update() public method

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
return void