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