Exemple #1
0
 public void SetState(State state)
 {
     this.state = state;
 }
Exemple #2
0
 public Rover(Point point, Char direction, IStateFactory stateFactory, Planet planet)
 {
     currentPoint = point;
     state = stateFactory.BuildState(this, direction, planet);
 }