src/StateMachine.cpp
/*
 * Jump to a state
 * given by a pointer to that state.
 */
Jump to a state
given by a pointer to that state.
Jump to a state given by a pointer to that state .
State* StateMachine::transitionTo(State* s){
  this->currentState = s->index;
  this->executeOnce = true;
  return s;
}
State * StateMachine :: transitionTo ( State * s ) { this -> currentState = s -> index ; this -> executeOnce = true ; return s ; }
Jump to a state
 given by a pointer to that state.
Jump to a state given by a pointer to that state .