Exemple #1
0
 public MinionManager(int p)
 {
     minArray = new Minion[p];
     minionsAlive = p;
     for (int i = 0; i < p; i++)
     {
         minArray[i] = new Minion();
     }
 }
Exemple #2
0
        private bool minInMid()
        {
            foreach (Minion element in minArray)
            {
                if (element.position == 1)
                {
                    currentMinion = element;
                    return true;
                }
            }

            return false;
        }