C# Class MrGravity.Menu_Code.SoundOptions

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

Public Methods

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

Draws the controller screen

GetRegion ( MenuChoices choice, Microsoft.Xna.Framework.Graphics.Texture2D texture ) : Rectangle
Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void

Loads images needed for this screen

SoundOptions ( IControlScheme controlScheme, GraphicsDeviceManager graphics ) : System

Constructor for SoundOptions 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

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 Matrix scale factor
return void

GetRegion() public method

public GetRegion ( MenuChoices choice, Microsoft.Xna.Framework.Graphics.Texture2D texture ) : Rectangle
choice MenuChoices
texture Microsoft.Xna.Framework.Graphics.Texture2D
return Microsoft.Xna.Framework.Rectangle

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

SoundOptions() public method

Constructor for SoundOptions screen
public SoundOptions ( IControlScheme controlScheme, GraphicsDeviceManager graphics ) : System
controlScheme IControlScheme Players method of control
graphics GraphicsDeviceManager Graphics manager for the game
return System

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