Exemplo n.º 1
0
 public void SelectAction(PBEventAction action)
 {
     current.Exit();
     current = action.NextState();
     current.Enter();
 }
Exemplo n.º 2
0
 public void AddTransition(PBState s, float p)
 {
     pLinks.Add(new PBTransition(s, p));
 }
Exemplo n.º 3
0
 public void SelectAction(int actionIndex)
 {
     current.Exit();
     current = current.actions[actionIndex].NextState();
     current.Enter();
 }
Exemplo n.º 4
0
 public void Reset()
 {
     current = starting;
 }
Exemplo n.º 5
0
 public PBFSM(PBState state)
 {
     starting = state;
     current  = state;
 }
Exemplo n.º 6
0
 public PBTransition(PBState s, float p)
 {
     nextState   = s;
     probability = p;
 }
Exemplo n.º 7
0
 public PBEventTransition(PBState s, float p) : base(s, p)
 {
 }