コード例 #1
0
 public void SetState(IStatelike newState)
 {
     _myState = newState;
 }
コード例 #2
0
 /**
  * Setter method for the state.
  * Normally only called by classes implementing the State interface.
  * @param newState the new state of this context
  */
 public void setState(IStatelike newState)
 {
     myState = newState;
 }