C# Class Drought.Menu.MenuState

Inheritance: Drought.State.GameState, IMenuListener
显示文件 Open project: kiniry-teaching/UCD Class Usage Examples

Public Methods

Method Description
MenuState ( IStateManager manager, DroughtGame game, int width, int height ) : System
background ( ) : void
foreground ( ) : void
loadContent ( ) : void
menuItemPressed ( MenuItem item ) : void
render ( GameTime gameTime, GraphicsDevice graphics, SpriteBatch spriteBatch ) : void
update ( GameTime gameTime ) : void

Private Methods

Method Description
initialise ( ) : void
makeHostList ( ) : void
makeJoinList ( ) : void
makeLocalList ( ) : void

Method Details

MenuState() public method

public MenuState ( IStateManager manager, DroughtGame game, int width, int height ) : System
manager IStateManager
game DroughtGame
width int
height int
return System

background() public method

public background ( ) : void
return void

foreground() public method

public foreground ( ) : void
return void

loadContent() public method

public loadContent ( ) : void
return void

menuItemPressed() public method

public menuItemPressed ( MenuItem item ) : void
item MenuItem
return void

render() public method

public render ( GameTime gameTime, GraphicsDevice graphics, SpriteBatch spriteBatch ) : void
gameTime Microsoft.Xna.Framework.GameTime
graphics GraphicsDevice
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

update() public method

public update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void