public InstructionScreen(PlayerIndexEventArgs e, GameToPlay gameToPlay)
     : base("")
 {
     _gameToPlay = gameToPlay;
     _marginLeft = 110;
     _e = e;
 }
예제 #2
0
 void SurvivalMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     LoadingScreen.Load(ScreenManager, true, e.PlayerIndex,
                        new GameplayScreen(GameToPlay.SurvivalGame));
 }
예제 #3
0
 /// <summary>
 /// Event handler for when the Play Game menu entry is selected.
 /// </summary>
 void PlayGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.AddScreen(new InstructionScreen(e,GameToPlay.NewGame), e.PlayerIndex);
 }
예제 #4
0
 /// <summary>
 /// Event handler for when the Options menu entry is selected.
 /// </summary>
 void OptionsMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.AddScreen(new OptionsMenuScreen(), e.PlayerIndex);
 }
예제 #5
0
 void HighScoresMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     HighScores.UploadScore();
     ScreenManager.AddScreen(new HighScoresScreen(), e.PlayerIndex);
 }
예제 #6
0
 /// <summary>
 /// Helper overload makes it easy to use OnCancel as a MenuEntry event handler.
 /// </summary>
 protected void OnCancel(object sender, PlayerIndexEventArgs e)
 {
     OnCancel(e.PlayerIndex);
 }