Exemplo n.º 1
0
 public Tractor(OrientationClockwiseFeature orientation, MoveForwardFeature positionFeature) : base(new List <FeatureBase> {
     orientation, positionFeature
 })
 {
     orientationFeature = orientation;
     moveForwardFeature = positionFeature;
 }
Exemplo n.º 2
0
        public static Tractor GetTractor()
        {
            var orientation = new OrientationClockwiseFeature(Orientation.North);
            var moveForward = new MoveForwardFeature(orientation, new Point(0, 0), new Size(5, 5));

            return(new Tractor(orientation, moveForward));
        }