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
Afficher le fichier Open project: tinco/Farseer-Physics

Méthodes publiques

Méthode 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

Méthode 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 méthode

Draws the menu.
public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

HandleInput() public méthode

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
Résultat void

LoadContent() public méthode

public LoadContent ( ) : void
Résultat void

OptionsScreen() public méthode

Constructor.
public OptionsScreen ( ) : System
Résultat System

Update() public méthode

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