Exemple #1
0
 public void TransitionToState(BookingState state)
 {
     _currentState = state;
     _currentState.EnterState(this); // cod rulat de clasa State corespunzatoare la intrarea in stare
 }
 public void TransitionToState(BookingState state)
 {
     currentState = state;
     currentState.EnterState(this);
 }
 public void TransitionToState(BookingState newBookingState)
 {
     _currentState = newBookingState;
     _currentState.EnterState(this);
 }