Ejemplo n.º 1
0
        private void SpeakWithCoachForm_Load(object sender, EventArgs e)
        {
            Program.formFixing(this);

            playersteam = MainForm.l.getTeambyTeamName(MainForm.playerteam);
            c = playersteam.coach;
            txtCoachInfo.Text = c.ToString();
            AddTeamInfo();
            
            txtCoachWords.Text = c.CoachName+" : Hello mr " + MainForm.playername + ", I heard you wanted to talk with me... what is the matter?";

            btnGoodJob.Focus();
        }
Ejemplo n.º 2
0
        public void TestCoach()
        {
            RandomFiller.RandomFiller rnd = new RandomFiller.RandomFiller();

            Coach erminio = new Coach(rnd.getName(), rnd.getSurname(), rnd.getAvgSkill(),rnd.getModules());
            Console.WriteLine(erminio.ToString());
        }
Ejemplo n.º 3
0
        public void TestPartitaConGiocatoriVeri()
        {
            Team juve = new Team("Juventus FC");
            Coach all = new Coach("Massimiliano", "Allegri", 80, "4-3-3");
            juve.setCoach(all);

            List<Player> juvteam = new List<Player>(){
                                                        new Player("Gigi","Buffon",36,87,"PT"),
                                                        new Player("Patrice","Evrá",33,82,"DS"),
                                                        new Player("Giorgio","Chiellini",30,86,"DC"),
                                                        new Player("Andrea","Barzagli",33,84,"DC"),
                                                        new Player("Paul", "Pogba", 21, 80, "CC", "Francese"),
                                                        new Player("Andrea", "Pirlo", 35, 87, "CC"),
                                                        new Player("Arturo", "Vidal", 28, 85, "CC", "Cileno"),
                                                        new Player("Kwadwo", "Asamoah", 26, 80, "AS", "Ghanese"),
                                                        new Player("Stephen", "Lichsteiner", 30, 80, "DD", "Svizzero"),
                                                        new Player("Carlitos", "Tevez", 30, 88, "AD", "Argentino"),
                                                        new Player("Fernando", "Llorente", 29, 82, "AC", "Spagnolo")
                                                        };
            juve.addPlayers(juvteam);

          /*  Module mod = all.FavouriteModule;

            Console.WriteLine("Modulo: " + mod.check(juve).ToString());*/

            Team milan = new Team("AC Milan");
            Coach all1 = new Coach("Filippo", "Inzaghi", 70, "4-4-2");
            milan.setCoach(all1);
            List<Player> milteam = new List<Player>(){
                                                        new Player("Christian","Abbiati",37,80,"PT"),
                                                        new Player("Kevin","Constant",27,78,"DD"),
                                                        new Player("Mattia","De Sciglio",22,78,"DS"),
                                                        new Player("Daniele","Bonera",33,77,"DC"),
                                                        new Player("Amil", "Rami", 29, 82, "DC", "Francese"),
                                                        new Player("Riccardo", "Montolivo", 29, 84, "CC"),
                                                        new Player("Keisuke", "Honda", 28, 81, "CC", "Giapponese"),
                                                        new Player("Neigel", "De Jong", 30, 79, "CC", "Olandese"),
                                                        new Player("Michael", "Essien", 32, 81, "CC", "Ghanese"),
                                                        new Player("Stephan", "El Shaarawy", 22, 81, "AC"),
                                                        new Player("Mario", "Balotelli", 24, 84, "AC")
                                                        };
            milan.addPlayers(milteam);


            //Partita
            Match m = new Match(juve, milan);
            Console.WriteLine(juve.ToStringFull());
            Console.WriteLine(milan.ToStringFull());
            Console.WriteLine("\n*********\n" + juve.Avg + " : " + milan.Avg);
            Console.WriteLine(juve.TeamName + " - " + milan.TeamName + " " + m.Score().ToString());

        }
Ejemplo n.º 4
0
 public void setCoach(Coach c){
     coach = c;
 }