コード例 #1
0
 public PlacePerformer(
     IRobotStateFactory robotStateFactory,
     ITableDimensions tableDimensions,
     int xCoordinate,
     int yCoordinate,
     IOrientation orientation)
 {
     this.robotStateFactory = robotStateFactory;
     this.tableDimensions   = tableDimensions;
     this.xCoordinate       = xCoordinate;
     this.yCoordinate       = yCoordinate;
     this.orientation       = orientation;
 }
コード例 #2
0
 public CommandPerformerFactory(
     IRobotStateFactory robotStateFactory,
     IOrientationTurner leftOrientationTurner,
     IOrientationTurner rightOrientationTurner,
     IMoveAttempter moveAttempter,
     ITableDimensions tableDimensions,
     ITextOutputter textOutputter)
 {
     this.robotStateFactory      = robotStateFactory;
     this.leftOrientationTurner  = leftOrientationTurner;
     this.rightOrientationTurner = rightOrientationTurner;
     this.moveAttempter          = moveAttempter;
     this.tableDimensions        = tableDimensions;
     this.textOutputter          = textOutputter;
 }