IGame IAcceptTutle.AddTurtle(Point startPosition, Direction direction, EventHandler <TurtleStatusChangedEventArg> turtleStatusChangedHandler) { this.turtle = new Turtle(startPosition, direction); this.turtleStatusChanged += turtleStatusChangedHandler; return(this); }
internal TurtleStatusChangedEventArg(Turtle turtle) { this.Position = turtle.CurrentPosition; this.Direction = turtle.CurrentDirection; this.Status = turtle.Status; }