public void AddMinion(int xCoordinate)
        {
            if (xCoordinate < 0 || xCoordinate > 1000000)
            {
                throw new ArgumentException("Invalid coordinate");
            }

            var minion = new Minion(this.minionCounter++,xCoordinate);
            this.minionsByCoordinates.Add(xCoordinate,minion);
        }
Exemple #2
0
 public int CompareTo(Minion other)
 {
     throw new System.NotImplementedException();
 }
Exemple #3
0
 public int CompareTo(Minion other)
 {
     return this.Id.CompareTo(other.Id);
 }