예제 #1
0
 //Go to the next step with the privided increment in the logic process based on the success of the previous step
 public void step(int step)
 {
     currIndex += step;
     if (currIndex >= list.Count)
     {
         currIndex = 0;
         if (!repeat)
         {
             queue = LogicQueue.none;
         }
     }
 }
예제 #2
0
        public LogicProcess(bool repeat, ICommunicator comm, int commodity,
                            int price, int amount, int id)
        {
            list           = new List <InnerLogic>();
            this.queue     = LogicQueue.first;
            this.currIndex = 0;
            this.repeat    = repeat;

            this.comm      = comm;
            this.commodity = commodity;
            this.price     = price;
            this.amount    = amount;
            this.id        = id;

            this.spec = null;
        }