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