C# Class FarseerPhysics.Samples.ScreenSystem.OptionsScreen

Base class for screens that contain a menu of options. The user can move up and down to select an entry, or cancel to back out of the screen.
Inheritance: GameScreen
Mostra file Open project: tinco/Farseer-Physics

Public Methods

Method Description
Draw ( GameTime gameTime ) : void

Draws the menu.

HandleInput ( InputHelper input, GameTime gameTime ) : void

Responds to user input, changing the selected entry and accepting or cancelling the menu.

LoadContent ( ) : void
OptionsScreen ( ) : System

Constructor.

Update ( GameTime gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen ) : void

Updates the menu.

Private Methods

Method Description
GetOptionEntryAt ( Vector2 position ) : int

Returns the index of the menu entry at the position of the given mouse state.

LoadOptions ( ) : void

Method Details

Draw() public method

Draws the menu.
public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

HandleInput() public method

Responds to user input, changing the selected entry and accepting or cancelling the menu.
public HandleInput ( InputHelper input, GameTime gameTime ) : void
input InputHelper
gameTime Microsoft.Xna.Framework.GameTime
return void

LoadContent() public method

public LoadContent ( ) : void
return void

OptionsScreen() public method

Constructor.
public OptionsScreen ( ) : System
return System

Update() public method

Updates the menu.
public Update ( GameTime gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen ) : void
gameTime Microsoft.Xna.Framework.GameTime
otherScreenHasFocus bool
coveredByOtherScreen bool
return void