public digProcess(Customer host, Customer client) { state_End se = new state_End(this); state_tryConncet s1 = new state_tryConncet(client, host, se, se, this); state_tryConncet s0 = new state_tryConncet(host, client, s1, s1, this); nowState = s0; ((linkCustomer)host).activeProcess = this; nowState.action(); }
public void toNext(bool result) { ((linkCustomer)node).activeProcess = null; if (result) { next1.action(); } else { next2.action(); } }