예제 #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);
        }
예제 #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));
        }
예제 #3
0
 public GangsDriverSet(GangsDriver driver)
 {
     this.driver = driver;
     this.thread = null;
 }
예제 #4
0
 public GangsDriverSet(GangsDriver driver)
 {
     this.driver = driver;
     this.thread = null;
 }