Esempio n. 1
0
 /// <summary>
 /// Event handler for when the user selects ok on the "are you sure
 /// you want to exit" message box.
 /// </summary>
 void ConfirmExitMessageBoxAccepted(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.Game.Exit();
 }
Esempio n. 2
0
 /// <summary>
 /// Event handler for when the System Link menu entry is selected.
 /// </summary>
 void SystemLinkMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     CreateOrFindSession(NetworkSessionType.SystemLink, e.PlayerIndex);
 }
Esempio n. 3
0
 /// <summary>
 /// Event handler for when the Live menu entry is selected.
 /// </summary>
 void LiveMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     CreateOrFindSession(NetworkSessionType.PlayerMatch, e.PlayerIndex);
 }
Esempio n. 4
0
 /// <summary>
 /// Event handler for when the Settings menu entry is selected.
 /// </summary>
 void SettingsMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.AddScreen(new SettingsScreen(), e.PlayerIndex);
 }
Esempio n. 5
0
 /// <summary>
 /// Event handler for when the Single Player menu entry is selected.
 /// </summary>
 void SinglePlayerMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     LoadingScreen.Load(ScreenManager, true, e.PlayerIndex, new GameplayScreen(null));
 }
Esempio n. 6
0
        /// <summary>
        /// Event handler for when the game over event
        /// </summary>
        void OnGameOver(object sender, PlayerIndexEventArgs e)
        {
            GameOverScreen gameOverScreen = new GameOverScreen(networkSession);

            ScreenManager.AddScreen(gameOverScreen, ControllingPlayer);
        }