C# Class NScumm.MonoGame.MainMenuScreen

Inheritance: MenuScreen
显示文件 Open project: scemino/nscumm

Private Properties

Property Type Description
GetEngine IEngine
GetGame Core.IO.IGameDescriptor
GetSaveGamePath string
GetSaveGames string[]
LoadGame void
OnExitGame void
SaveGame void
UpdateMenus void

Public Methods

Method Description
Draw ( GameTime gameTime ) : void
ExitScreen ( ) : void
MainMenuScreen ( ScummScreen screen ) : System

Constructs a new MainMenu object.

Update ( GameTime gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen ) : void

Updates the screen. This method checks the GameScreen.IsActive property, so the game will stop updating when the pause menu is active, or if you tab away to a different application.

Protected Methods

Method Description
OnCancel ( ) : void

When the user cancels the main menu, ask if they want to exit the sample.

OnSelectEntry ( int entryIndex ) : void

Responds to user menu selections.

Private Methods

Method Description
GetEngine ( ) : IEngine
GetGame ( ) : Core.IO.IGameDescriptor
GetSaveGamePath ( int index ) : string
GetSaveGames ( ) : string[]
LoadGame ( int index ) : void
OnExitGame ( ) : void
SaveGame ( int index ) : void
UpdateMenus ( ) : void

Method Details

Draw() public method

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

ExitScreen() public method

public ExitScreen ( ) : void
return void

MainMenuScreen() public method

Constructs a new MainMenu object.
public MainMenuScreen ( ScummScreen screen ) : System
screen ScummScreen
return System

OnCancel() protected method

When the user cancels the main menu, ask if they want to exit the sample.
protected OnCancel ( ) : void
return void

OnSelectEntry() protected method

Responds to user menu selections.
protected OnSelectEntry ( int entryIndex ) : void
entryIndex int
return void

Update() public method

Updates the screen. This method checks the GameScreen.IsActive property, so the game will stop updating when the pause menu is active, or if you tab away to a different application.
public Update ( GameTime gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen ) : void
gameTime Microsoft.Xna.Framework.GameTime
otherScreenHasFocus bool
coveredByOtherScreen bool
return void