C# Class SunsetHigh.MenuEntry

Mostrar archivo Open project: ErraticUnicorn/MOSH Class Usage Examples

Public Methods

Method Description
MenuEntry ( ) : System
MenuEntry ( string name ) : System
MenuEntry ( string name, int x, int y ) : System
draw ( SpriteBatch sb, int x_offset, int y_offset, SpriteFont font, Color c ) : void
getName ( ) : string
getX ( ) : int
getY ( ) : int
onHover ( ) : void
onPress ( ) : void
onUnhover ( ) : void
setName ( string name ) : void
setX ( int x ) : void
setY ( int y ) : void

Method Details

MenuEntry() public method

public MenuEntry ( ) : System
return System

MenuEntry() public method

public MenuEntry ( string name ) : System
name string
return System

MenuEntry() public method

public MenuEntry ( string name, int x, int y ) : System
name string
x int
y int
return System

draw() public method

public draw ( SpriteBatch sb, int x_offset, int y_offset, SpriteFont font, Color c ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
x_offset int
y_offset int
font Microsoft.Xna.Framework.Graphics.SpriteFont
c Color
return void

getName() public method

public getName ( ) : string
return string

getX() public method

public getX ( ) : int
return int

getY() public method

public getY ( ) : int
return int

onHover() public method

public onHover ( ) : void
return void

onPress() public abstract method

public abstract onPress ( ) : void
return void

onUnhover() public method

public onUnhover ( ) : void
return void

setName() public method

public setName ( string name ) : void
name string
return void

setX() public method

public setX ( int x ) : void
x int
return void

setY() public method

public setY ( int y ) : void
y int
return void