private int DeliverObject(int currentState, object o) { TextBoxStreamWriter.DefaultLog.WriteLine("HAL9000.-> DeliverObject state reached."); //TODO: //deliver the object if (SMConfiguration.bringTohuman) { cmdMan.ST_PLN_deliverobject(SMConfiguration.ARMS_usedArm, 15000); } SMConfiguration.ARMS_usedArm = ""; //return the arm to the original position finalStatus = Status.OK; // TODO: Change the next status return((int)States.FinalState); }
private int DeliverDrink(int currentState, object o) { TextBoxStreamWriter.DefaultLog.WriteLine("delivering object"); cmdMan.ST_PLN_deliverobject("object", 30000); Thread.Sleep(5000); //this.cmdMan.ARMS_ra_goto("home"); this.cmdMan.ARMS_goto("standby", 8000); if (ordersCount < 3) { attemptCounter = 0; ordersCount++; return((int)States.GoToPartyRoom); } return((int)States.LeaveArena); }