Beispiel #1
0
 public void buildVolary()
 {
     if (volary != null)
     {
         volary.buildVolary();
     }
     else
     {
         volary = new Volary();
     }
 }
Beispiel #2
0
 public string buildVolary()
 {
     if (volary != null)
     {
         int count = 0;
         count = volary.Count();
         Console.WriteLine(count);
         if (count < 4)
         {
             volary.buildVolary();
             Console.WriteLine("vbt");
         }
         else
         {
             room.buildVolary();
             Console.WriteLine("vbior");
         }
     }
     else
     {
         volary = new Volary();
     }
     return("Новий вольер збудовано.");
 }