Beispiel #1
0
 public static Apollon[] GetApollon(namesKaiju name, int numberName, float version, float thicknessOfTitanium, int levelOfLibido, int count)
 {
     if (numberName > 0 & count > 0)
     {
         Apollon[] masApollon = new Apollon[count];
         for (int i = 0; i < masApollon.Length; i++)
         {
             masApollon[i] = new Apollon(levelOfLibido, thicknessOfTitanium, name.ToString() + numberName++, version);
         }
         return masApollon;
     }
     else
     {
         throw new System.Exception("The parameter is incorrect!");
     }
 }
Beispiel #2
0
 public static Flying[] GetFlying(namesKaiju name, int numberName, float version, int flyghtSpeed, int count)
 {
     if (name == namesKaiju.Flying & numberName > 0 & count > 0)
     {
         Flying[] masFlying = new Flying[count];
         for (int i = 0; i < masFlying.Length; i++)
         {
             masFlying[i] = new Flying(flyghtSpeed, name.ToString() + numberName++, version);
         }
         return masFlying;
     }
     else
     {
         throw new System.Exception("The parameter is incorrect!");
     }
 }
Beispiel #3
0
 public static Kaiju[] GetKaiju(namesKaiju name, int numberName, float version, int count)
 {
     if (name >= namesKaiju.Kaiju & name <= namesKaiju.Zeus & numberName > 0 & count > 0)
     {
         Kaiju[] masKaiju = new Kaiju[count];
         for (int i = 0; i < masKaiju.Length; i++)
         {
             masKaiju[i] = new Kaiju(name.ToString() + numberName++, version);
         }
         return masKaiju;
     }
     else
     {
         throw new System.Exception("The parameter is incorrect!");
     }
 }
Beispiel #4
0
 public static Zeus[] GetZeus(namesKaiju name, int numberName, float version, float thicknessOfTitanium, int lightningStrikes, int count)
 {
     if (numberName > 0 & count > 0)
     {
         Zeus[] masZeus = new Zeus[count];
         for (int i = 0; i < masZeus.Length; i++)
         {
             masZeus[i] = new Zeus(lightningStrikes, thicknessOfTitanium, name.ToString() + numberName++, version);
         }
         return masZeus;
     }
     else
     {
         throw new System.Exception("The parameter is incorrect!");
     }
 }
Beispiel #5
0
 public static Gorilla[] GetGorilla(namesKaiju name, int numberName, float version, int distanceOfJump, int count)
 {
     if (numberName > 0 & count > 0)
     {
         Gorilla[] masGorilla = new Gorilla[count];
         for (int i = 0; i < masGorilla.Length; i++)
         {
             masGorilla[i] = new Gorilla(distanceOfJump, name.ToString() + numberName++, version);
         }
         return masGorilla;
     }
     else
     {
         throw new System.Exception("The parameter is incorrect!");
     }
 }