예제 #1
0
 internal State(string name, FSMComponent fsm)
 {
     this.name        = name;
     this.fsm         = fsm;
     this.actions     = new List <IStateAction>();
     this.transitions = new Dictionary <string, string>();
 }
예제 #2
0
 private State(State state, string newName)
 {
     this.name        = newName;
     this.fsm         = state.fsm;
     this.actions     = CloneActions(state);
     this.transitions = new Dictionary <string, string>(state.transitions);
 }
예제 #3
0
 private State(State state, FSMComponent fsm)
 {
     this.name        = state.Name;
     this.fsm         = fsm;
     this.actions     = CloneActions(state);
     this.transitions = new Dictionary <string, string>(state.transitions);
 }
예제 #4
0
 public FSMComponent(FSMComponent fSMComponent)
 {
     this.startState = fSMComponent.startState;
     this.variables  = (IVariableCollection)fSMComponent.variables.Clone();
     this.states     = CloneStates(fSMComponent.states);
 }
예제 #5
0
 internal State Clone(FSMComponent fsm)
 {
     return(new State(this, fsm));
 }