Example #1
0
        public int AddDriver(GangsDriver driver)
        {
            if (this.driverSet.Count >= maxDriverSize)
                throw new IndexOutOfRangeException();

            GangsDriverSet tmp = new GangsDriverSet(driver);
            this.driverSet.Add(tmp);

            return this.driverSet.IndexOf(tmp);
        }
Example #2
0
        public int AddDriver(GangsDriver driver)
        {
            if (this.driverSet.Count >= maxDriverSize)
            {
                throw new IndexOutOfRangeException();
            }

            GangsDriverSet tmp = new GangsDriverSet(driver);

            this.driverSet.Add(tmp);

            return(this.driverSet.IndexOf(tmp));
        }