public void clickCard(int ID) { if (!World.Player.mpIsEmpty()) { if (World.Player.useMP(hand[ID].ManaCost)) { hand[ID].useCard(Opt.Enemy); discard(ID); refreshInfo(); if (Opt.Enemy.isDead()) { MessageBox.Show("You defided the monster", "Congratulation!!!"); GUIController.nextWindow(StartForm.Start, new EventForm()); } } else { MessageBox.Show("You haven`t MP for this card"); } } else { MessageBox.Show("Your mp is empty", "Warning"); } }
private void letsNext(Option opt) { opt.doOption(); if (opt.cardConsist()) { World.Player.Cards.Add(opt.Card); } if (opt.enemyConsist()) { MessageBox.Show("Oops, you met a monster", "Trouble"); GUIController.nextWindow(StartForm.Start, new BattleForm(opt)); return; } if (World.endEvent()) { GUIController.nextWindow(StartForm.Start, new EventForm()); } else { MessageBox.Show("Your indicator went down to zero.", "You Loose :("); GUIController.nextWindow(StartForm.Start, new StartForm()); } }
private void button3_Click(object sender, EventArgs e) { World.chooseDiff(3); GUIController.nextWindow(StartForm.Start, new EventForm()); }