C# Class MrGravity.Menu_Code.SoundOptions

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

Méthodes publiques

Méthode 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 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 Matrix scale factor
Résultat void

GetRegion() public méthode

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

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

SoundOptions() public méthode

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

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