C# Class personal_training_martial_arts.Core.Button

Mostra file Open project: joseruizjimenez/personal-training-martial-arts Class Usage Examples

Public Properties

Property Type Description
name string
rectangle Microsoft.Xna.Framework.Rectangle
state BState

Public Methods

Method Description
Button ( String name, int x, int y, int width, int height ) : System
justPushed ( ) : System.Boolean
updateState ( ) : BState

Private Methods

Method Description
hit_button ( Rectangle button, int mx, int my ) : System.Boolean

Method Details

Button() public method

public Button ( String name, int x, int y, int width, int height ) : System
name String
x int
y int
width int
height int
return System

justPushed() public method

public justPushed ( ) : System.Boolean
return System.Boolean

updateState() public method

public updateState ( ) : BState
return BState

Property Details

name public_oe property

public string name
return string

rectangle public_oe property

public Rectangle,Microsoft.Xna.Framework rectangle
return Microsoft.Xna.Framework.Rectangle

state public_oe property

public BState state
return BState