Пример #1
0
 /**
  * Executes the List of turtle commands on this turtle
  *
  */
 public void Do(IList <TurtleCommand> turtleCommands)
 {
     foreach (TurtleCommand TurtleCommand in turtleCommands)
     {
         TurtleCommand.Execute(this);
     }
 }
Пример #2
0
        //======================================================

        /**
         * Executes the specified TurtleCommand on this Turtle
         */
        public void Do(TurtleCommand TurtleCommand)
        {
            TurtleCommand.Execute(this);
        }