C# Class NScumm.MonoGame.MainMenuScreen

Inheritance: MenuScreen
Afficher le fichier Open project: scemino/nscumm

Private Properties

Свойство Type Description
GetEngine IEngine
GetGame Core.IO.IGameDescriptor
GetSaveGamePath string
GetSaveGames string[]
LoadGame void
OnExitGame void
SaveGame void
UpdateMenus void

Méthodes publiques

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

Méthodes protégées

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

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

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

ExitScreen() public méthode

public ExitScreen ( ) : void
Résultat void

MainMenuScreen() public méthode

Constructs a new MainMenu object.
public MainMenuScreen ( ScummScreen screen ) : System
screen ScummScreen
Résultat System

OnCancel() protected méthode

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

OnSelectEntry() protected méthode

Responds to user menu selections.
protected OnSelectEntry ( int entryIndex ) : void
entryIndex int
Résultat void

Update() public méthode

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
Résultat void