Exemple #1
0
 protected override void DoApplyTo(Rover rover)
 {
     rover.Orientation = rover.Orientation.Turn(1);
 }
Exemple #2
0
        public static string GetName(this Rover rover)
        {
            Contract.Requires <ArgumentNullException>(rover != null, "rover");

            return(rover.GetHashCode().ToString());
        }
Exemple #3
0
 protected abstract void DoApplyTo(Rover rover);
 public static void AttachTo(this IRoverController controller, Rover rover)
 {
     Contract.Requires(rover != null);
     rover.AttachContoller(controller);
 }
Exemple #5
0
 public virtual void ApplyTo(Rover rover)
 {
     DoApplyTo(rover);
 }