Exemplo n.º 1
0
 public void LayOffWorkers(int num = 1)
 {
     for (int i = 0; i < num; i++)
     {
         if (workers.Count > 0)
         {
             workers.RemoveAt(0);
         }
         else
         {
             MyConsole.WriteInformation("There are no employees in the team");
         }
     }
 }
Exemplo n.º 2
0
 public void HireWorkers(int num = 1)
 {
     for (int i = 0; i < num; i++)
     {
         if (workers.Count < needWorkers)
         {
             workers.Add(new Worker());
         }
         else
         {
             MyConsole.WriteInformation("The team is complete        ");
         }
     }
 }
Exemplo n.º 3
0
 public void DoBuild(int part)
 {
     MyConsole.WriteInformation("Windows are building now...    ");
     Console.ForegroundColor = ConsoleColor.Gray;
     for (int i = 0; i < 4; i++)
     {
         Console.SetCursorPosition(8 + part * 8, 17 - i);
         for (int j = 0; j < 5; j++)
         {
             Console.Write(":");
             Thread.Sleep(25);
         }
         Console.WriteLine();
     }
 }
Exemplo n.º 4
0
 public void DoBuild(int part)
 {
     MyConsole.WriteInformation("Door are building now...      ");
     Console.ForegroundColor = ConsoleColor.Gray;
     for (int i = 0; i < 6; i++)
     {
         Console.SetCursorPosition(30, 19 - i);
         for (int j = 0; j < 6; j++)
         {
             Console.Write(":");
             Thread.Sleep(25);
         }
         Console.WriteLine();
     }
 }
Exemplo n.º 5
0
 public void DoBuild(int part)
 {
     MyConsole.WriteInformation("Walls is building     ");
     Console.ForegroundColor = ConsoleColor.DarkGreen;
     for (int i = 0; i < 2; i++)
     {
         Console.SetCursorPosition(5, 19 - i - part * 2);
         for (int j = 0; j < 40; j++)
         {
             Console.Write("%");
             Thread.Sleep(25);
         }
         Console.WriteLine();
     }
 }
Exemplo n.º 6
0
 public void DoBuild(int part = 1)
 {
     MyConsole.WriteInformation("Roof is building     ");
     Console.ForegroundColor = ConsoleColor.Cyan;
     for (int i = 0; i < 10; i++)
     {
         Console.SetCursorPosition(3 + i, 11 - i);
         for (int j = 0; j < 44 - i * 2; j++)
         {
             Console.Write("*");
             Thread.Sleep(25);
         }
         Console.WriteLine();
     }
 }
Exemplo n.º 7
0
 public void DoBuild(int part = 1)
 {
     MyConsole.WriteInformation("Basement is building");
     Console.ForegroundColor = ConsoleColor.DarkRed;
     for (int i = 0; i < 3; i++)
     {
         Console.SetCursorPosition(5, 22 - i);
         for (int j = 0; j < 40; j++)
         {
             Console.Write("#");
             Thread.Sleep(25);
         }
         Console.WriteLine();
     }
     MyConsole.WriteInformation("The basement is completed");
 }
Exemplo n.º 8
0
 public void HireWorkers(int num = 1)
 {
     for (int i = 0; i < num; i++)
     {
         if (workers.Count < needWorkers)
         {
             Loger.WriteLog("Trying to hire a worker");
             workers.Add(new Worker());
             Loger.WriteLog("The worker is hired");
         }
         else
         {
             MyConsole.WriteInformation("The team is complete        ");
             Loger.WriteLog("The team is complete");
         }
     }
 }