C# Class XNAGraphics.ComponentBundle.DrawableBundle.Button

Inheritance: XNAGraphics.KernelBundle.BasicsBundle.BasicDrawable
Mostra file Open project: joseruizjimenez/personal-training-martial-arts

Public Properties

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

Public Methods

Method Description
Button ( Object texture, int x, int y ) : System
Button ( Object texture, int x, int y, float scale ) : System
justPushed ( ) : System.Boolean
updateState ( ) : BState

Protected Methods

Method Description
onDraw ( SpriteBatch spriteBatch ) : void
onLoad ( Microsoft.Xna.Framework.Game game ) : void
onUpdate ( GameTime gameTime ) : void

Private Methods

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

Method Details

Button() public method

public Button ( Object texture, int x, int y ) : System
texture Object
x int
y int
return System

Button() public method

public Button ( Object texture, int x, int y, float scale ) : System
texture Object
x int
y int
scale float
return System

justPushed() public method

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

onDraw() protected method

protected onDraw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

onLoad() protected method

protected onLoad ( Microsoft.Xna.Framework.Game game ) : void
game Microsoft.Xna.Framework.Game
return void

onUpdate() protected method

protected onUpdate ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

updateState() public method

public updateState ( ) : BState
return BState

Property Details

rectangle public_oe property

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

state public_oe property

public BState state
return BState