public void MakerTTi()
        {
            int v = 0;

            Workers = new Worker[NumofWorkers];
            for (int i = 0; i < 5; i++)
            {
                Workers[v] = new Coach(Teams[i].GetCoach());
                v++;
            }
            for (int i = 0; i < 5; i++)
            {
                Workers[v] = new Manager(Teams[i].GetManager());
                v++;
            }
            for (int i = 0; i < 15; i++)
            {
                Workers[v] = new Footballer(Teams[0].GetPlayer(i));
                v++;
            }
            for (int i = 0; i < 15; i++)
            {
                Workers[v] = new Footballer(Teams[1].GetPlayer(i));
                v++;
            }
            for (int i = 0; i < 15; i++)
            {
                Workers[v] = new Footballer(Teams[2].GetPlayer(i));
                v++;
            }
            for (int i = 0; i < 15; i++)
            {
                Workers[v] = new Footballer(Teams[3].GetPlayer(i));
                v++;
            }
            for (int i = 0; i < 15; i++)
            {
                Workers[v] = new Footballer(Teams[4].GetPlayer(i));
                v++;
            }
        }
예제 #2
0
 public void setCoachs(string x, string y, string z, int d, string h, int k)
 {
     Coachs = new Coach(x, y, z, d, h, true, k);
 }
 public Coach(Coach x) : base(x)
 {
     TeamName       = x.TeamName;
     PastPlayer     = x.PastPlayer;
     NumOfChampions = x.NumOfChampions;
 }