C# Class Drought.Menu.MenuState

Inheritance: Drought.State.GameState, IMenuListener
Afficher le fichier Open project: kiniry-teaching/UCD Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
initialise ( ) : void
makeHostList ( ) : void
makeJoinList ( ) : void
makeLocalList ( ) : void

Method Details

MenuState() public méthode

public MenuState ( IStateManager manager, DroughtGame game, int width, int height ) : System
manager IStateManager
game DroughtGame
width int
height int
Résultat System

background() public méthode

public background ( ) : void
Résultat void

foreground() public méthode

public foreground ( ) : void
Résultat void

loadContent() public méthode

public loadContent ( ) : void
Résultat void

menuItemPressed() public méthode

public menuItemPressed ( MenuItem item ) : void
item MenuItem
Résultat void

render() public méthode

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

update() public méthode

public update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void