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