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); }
public int CompareTo(Minion other) { throw new System.NotImplementedException(); }
public int CompareTo(Minion other) { return this.Id.CompareTo(other.Id); }