/* * /// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <summary> /// Exit button /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void DropHero_Selected(object sender, EventArgs e) { Camp.AddWindow(new DropNPCWindow(Camp)); }
/// <summary> /// Game options /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void GameOptions_Selected(object sender, EventArgs e) { Camp.AddWindow(new GameOptionsWindow(Camp)); }
/// <summary> /// Rest Party /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void RestParty_Selected(object sender, EventArgs e) { Camp.AddWindow(new RestPartyWindow(Camp)); }
/// <summary> /// ScribeScrolls /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void ScribeScrolls_Selected(object sender, EventArgs e) { Camp.AddWindow(new ScribeScrollsWindow(Camp)); }
/// <summary> /// Preferences /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void Preferences_Selected(object sender, EventArgs e) { Camp.AddWindow(new PreferencesWindow(Camp)); }