C# Class CrisisAtSwissStation.MenuEngine

Mostra file Open project: danielpcox/Crisis-at-Swiss-Station Class Usage Examples

Public Properties

Property Type Description
currentScreen MenuScreen

Public Methods

Method Description
Draw ( SpriteBatch spriteBatch ) : void
LoadContent ( Microsoft.Xna.Framework.Content.ContentManager Content ) : void

Load content for menu screens

MenuEngine ( ) : System

NextMenu ( ) : void
Reset ( ) : void
ReturnAndResetCommand ( MenuCommand forcedCommand = MenuCommand.NONE ) : MenuCommand

Returns command to main game loop and resets this menu's command to prevent getting stuck in an infinite loop.

Update ( ) : void

Method Details

Draw() public method

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

LoadContent() public method

Load content for menu screens
public LoadContent ( Microsoft.Xna.Framework.Content.ContentManager Content ) : void
Content Microsoft.Xna.Framework.Content.ContentManager
return void

MenuEngine() public method

public MenuEngine ( ) : System
return System

NextMenu() public method

public NextMenu ( ) : void
return void

Reset() public method

public Reset ( ) : void
return void

ReturnAndResetCommand() public method

Returns command to main game loop and resets this menu's command to prevent getting stuck in an infinite loop.
public ReturnAndResetCommand ( MenuCommand forcedCommand = MenuCommand.NONE ) : MenuCommand
forcedCommand MenuCommand
return MenuCommand

Update() public method

public Update ( ) : void
return void

Property Details

currentScreen public_oe property

Current screen viewed by user
public MenuScreen,CrisisAtSwissStation currentScreen
return MenuScreen