C# Class FarseerPhysics.Samples.ScreenSystem.OptionEntry

Helper class represents a single entry in a OptionScreen.
Show file Open project: tinco/Farseer-Physics

Public Methods

Method Description
InitializePosition ( Vector2 target ) : void
OptionEntry ( string text, bool isChecked ) : System

Constructs a new option entry with the specified text.

Switch ( ) : void
Update ( bool isHovered, GameTime gameTime ) : void

Updates the menu entry.

Method Details

InitializePosition() public method

public InitializePosition ( Vector2 target ) : void
target Vector2
return void

OptionEntry() public method

Constructs a new option entry with the specified text.
public OptionEntry ( string text, bool isChecked ) : System
text string
isChecked bool
return System

Switch() public method

public Switch ( ) : void
return void

Update() public method

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