Beispiel #1
0
 public MainProgram()
 {
     myFighter = new BasicFighter();
     //System.Windows.MessageBox.Show(myFighter.ToString());
     // comit 2 try
     //Console.WriteLine(myFighter.ToString());
     Console.WriteLine("Mainprogram objektum létrejött, létrehozza " + myFighter.ToString() + " objektumot");
 }
Beispiel #2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            BasicFighter myFighter1 = new BasicFighter();
            BasicFighter myFighter2 = new BasicFighter();

            main_konzol.AppendText(myFighter1.ToString() + Environment.NewLine);
            main_konzol.AppendText(myFighter2.ToString() + Environment.NewLine);

            BasicMatchMaker myBasicHarcoltato = new BasicMatchMaker(myFighter1, myFighter2);
            string          kinyert           = myBasicHarcoltato.Harcoltatas();

            main_konzol.AppendText(kinyert + " " + Environment.NewLine);
        }