Beispiel #1
0
        public static Pilot GetRandomPilot()
        {
            List <int> keyList     = new List <int>(pilots.Keys);
            Pilot      randomPilot = pilots[keyList[Rng.Next(keyList.Count)]];

            while (true)
            {
                if (randomPilot.hasAbility == false)
                {
                    randomPilot = pilots[keyList[Rng.Next(keyList.Count)]];
                }
                else
                {
                    break;
                }
            }
            return(randomPilot);
        }
Beispiel #2
0
 public UniquePilot(Pilot pilot, int id)
 {
     this.pilot = pilot;
     this.id    = id;
 }