Exemple #1
0
/*
 *              /// <summary>
 *              /// Load game answer
 *              /// </summary>
 *              /// <param name="sender"></param>
 *              /// <param name="e"></param>
 *              void LoadAnswer(object sender, EventArgs e)
 *              {
 *                      if (((MessageBox) sender).DialogResult == DialogResult.Yes)
 *                      {
 *                              GameScreen.Team.LoadParty();
 *                              Camp.Exit();
 *                      }
 *              }
 */

        /// <summary>
        /// Exit button
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void Save_Selected(object sender, EventArgs e)
        {
            Camp.AddWindow(new SaveGameWindow(Camp));

            //MessageBox = new MessageBox("Are you sure you<br />wish to SAVE<br />the game ?", MessageBoxButtons.YesNo);
            //MessageBox.Selected +=new EventHandler(SaveAnswer);
        }
Exemple #2
0
        /// <summary>
        /// Memorize spells
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void MemorizeSpells_Selected(object sender, EventArgs e)
        {
            SpellWindow window = new SpellWindow(Camp);

            window.Message = "Select a character<br />from your party<br />who would like to<br />memorize spells.";
            window.Filter  = HeroClass.Mage;
            Camp.AddWindow(window);
        }
Exemple #3
0
        /// <summary>
        /// PrayForSpells
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void PrayForSpells_Selected(object sender, EventArgs e)
        {
            SpellWindow window = new SpellWindow(Camp);

            window.Message = "Select a character<br />from your party<br />who would like to<br />pray for spells.";
            window.Filter  = HeroClass.Cleric | HeroClass.Paladin;
            Camp.AddWindow(window);
        }
Exemple #4
0
 /// <summary>
 /// Exit button
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void Load_Selected(object sender, EventArgs e)
 {
     Camp.AddWindow(new LoadGameWindow(Camp));
     //MessageBox = new MessageBox("Are you sure you<br />wish to LOAD a<br />saved game ?", MessageBoxButtons.YesNo);
     //MessageBox.Selected +=new EventHandler(LoadAnswer);
 }
Exemple #5
0
 /// <summary>
 /// Exit button
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void DropHero_Selected(object sender, EventArgs e)
 {
     Camp.AddWindow(new DropNPCWindow(Camp));
 }
Exemple #6
0
 /// <summary>
 /// Game options
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void GameOptions_Selected(object sender, EventArgs e)
 {
     Camp.AddWindow(new GameOptionsWindow(Camp));
 }
Exemple #7
0
 /// <summary>
 /// Rest Party
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void RestParty_Selected(object sender, EventArgs e)
 {
     Camp.AddWindow(new RestPartyWindow(Camp));
 }
Exemple #8
0
 /// <summary>
 /// ScribeScrolls
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void ScribeScrolls_Selected(object sender, EventArgs e)
 {
     Camp.AddWindow(new ScribeScrollsWindow(Camp));
 }
Exemple #9
0
 /// <summary>
 /// Preferences
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void Preferences_Selected(object sender, EventArgs e)
 {
     Camp.AddWindow(new PreferencesWindow(Camp));
 }