Exemplo n.º 1
0
 /// <summary>
 /// Event handler for when the Play Game menu entry is selected.
 /// </summary>
 void CampaignGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     GameManager.Level = 0;
     GameManager.Hero = new Hero();
     LoadingScreen.Load(ScreenManager, false, e.PlayerIndex,
                        new GameplayScreen());
 }
Exemplo n.º 2
0
 /// <summary>
 /// Event handler for when the Back menu entry is selected.
 /// </summary>
 void BackMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     ExitScreen();
 }
Exemplo n.º 3
0
        /// <summary>
        /// Event handler for when the Ungulate menu entry is selected.
        /// </summary>
        void UngulateMenuEntrySelected(object sender, PlayerIndexEventArgs e)
        {
            currentUngulate++;

            if (currentUngulate > Ungulate.Llama)
                currentUngulate = 0;

            SetMenuEntryText();
        }
Exemplo n.º 4
0
        /// <summary>
        /// Event handler for when the Language menu entry is selected.
        /// </summary>
        void LanguageMenuEntrySelected(object sender, PlayerIndexEventArgs e)
        {
            currentLanguage = (currentLanguage + 1) % languages.Length;

            SetMenuEntryText();
        }
Exemplo n.º 5
0
        /// <summary>
        /// Event handler for when the Frobnicate menu entry is selected.
        /// </summary>
        void FrobnicateMenuEntrySelected(object sender, PlayerIndexEventArgs e)
        {
            frobnicate = !frobnicate;

            SetMenuEntryText();
        }
Exemplo n.º 6
0
        /// <summary>
        /// Event handler for when the Elf menu entry is selected.
        /// </summary>
        void ElfMenuEntrySelected(object sender, PlayerIndexEventArgs e)
        {
            elf++;

            SetMenuEntryText();
        }
Exemplo n.º 7
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);
 }
Exemplo n.º 8
0
 /// <summary>
 /// Event handler for when the Options menu entry is selected.
 /// </summary>
 void ExitMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.Game.Exit();
 }
Exemplo n.º 9
0
 void AboutGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.AddScreen(new AboutScreen(), e.PlayerIndex);
 }
Exemplo n.º 10
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);
 }