public override string postEvent(FSMEvent evt) { string ret = ""; if (actionMap_.ContainsKey(evt.msg)) { ret = actionMap_[evt.msg](evt); } return(ret); }
public void postEvent(FSMEvent evt) { for (int i = 0; i < this.currState_.Count; ++i) { State state = this.currState_[i] as State; string stateName = state.postEvent(evt) as string; if (stateName != "") { this.translation(stateName); break; } } }