Beispiel #1
0
 private void AssassinvsOpponent_Load(object sender, EventArgs e)
 {
     pictureBoxAssassin.Image      = Image.FromFile(@"C:\Users\Adrian\Desktop\c# obraz\assassin.jpg");
     pictureBoxMonster.Image       = Image.FromFile(@"C:\Users\Adrian\Desktop\c# obraz\monster.jpg");
     progressBarHPAssassin.Value   = 100;
     progressBarManaAssassin.Value = 100;
     progressBarHPMonster.Value    = 100;
     assassin = new Assassin("JED", 50, 170, 2200, 900);
     textBoxADAssassin.Text = assassin.AttackDamage.ToString();
     textBoxAPAssassin.Text = assassin.AbilityPower.ToString();
     monster = new Opponent("GAZOL", 0, 0, 40, 10000);
     textBoxADMonster.Text = monster.AttackDamage.ToString();
 }
Beispiel #2
0
 private void PalladinvsOpponent_Load(object sender, EventArgs e)
 {
     pictureBoxPalladin.Image      = Image.FromFile(@"C:\Users\Adrian\Desktop\c# obraz\palladin.jpg");
     pictureBoxMonster.Image       = Image.FromFile(@"C:\Users\Adrian\Desktop\c# obraz\monster.jpg");
     progressBarHPPalladin.Value   = 100;
     progressBarManaPalladin.Value = 100;
     progressBarHPMonster.Value    = 100;
     palladin = new Palladin("Patheon", 30, 130, 2400, 700);
     textBoxADPalladin.Text = palladin.AttackDamage.ToString();
     textBoxAPPalladin.Text = palladin.AbilityPower.ToString();
     monster = new Opponent("GAZOL", 0, 0, 40, 10000);
     textBoxADMonster.Text = monster.AttackDamage.ToString();
 }
Beispiel #3
0
 private void WarriorvsOpponent_Load(object sender, EventArgs e)
 {
     /// <summary>
     /// Ustawiam zjecia ze sciezek oraz ustawiam domyslnie wartsci dla paskow HP i Many na 100 oraz tworze 2 nowe obiekty warriora i monstera inicjujac ich odrazu wartosciami ktore podajew konstruktorze
     /// </summary>
     pictureBoxWarrior2.Image     = Image.FromFile(@"C:\Users\Adrian\Desktop\c# obraz\warrior.jpg");
     pictureBoxMonster.Image      = Image.FromFile(@"C:\Users\Adrian\Desktop\c# obraz\monster.jpg");
     progressBarHPWarrior.Value   = 100;
     progressBarManaWarrior.Value = 100;
     progressBarHPMonster.Value   = 100;
     warrior = new Warrior("Aarax", 30, 110, 3000, 400);
     textBoxADWarrior.Text = warrior.AttackDamage.ToString();
     textBoxAPWarrior.Text = warrior.AbilityPower.ToString();
     monster = new Opponent("GAZOL", 0, 0, 40, 10000);
     textBoxADMonster.Text = monster.AttackDamage.ToString();
 }