/** * Executes the List of turtle commands on this turtle * */ public void Do(IList <TurtleCommand> turtleCommands) { foreach (TurtleCommand TurtleCommand in turtleCommands) { TurtleCommand.Execute(this); } }
//====================================================== /** * Executes the specified TurtleCommand on this Turtle */ public void Do(TurtleCommand TurtleCommand) { TurtleCommand.Execute(this); }