src/StateMachine.cpp
/*
 * Jump to a state
 * given by a state index number.
 */
Jump to a state
given by a state index number.
Jump to a state given by a state index number .
int StateMachine::transitionTo(int i){
  if(i < stateList->size()){
	this->currentState = i;
	this->executeOnce = true;
	return i;
  }
  return currentState;
}
int StateMachine :: transitionTo ( int i ) { if ( i < stateList -> size ( ) ) { this -> currentState = i ; this -> executeOnce = true ; return i ; } return currentState ; }
Jump to a state
 given by a state index number.
Jump to a state given by a state index number .