Exemplo n.º 1
0
 public static void DrawTarget(this IDrawer drawer, Map map, Vector from, string style, Tuple<Vector, Stack<RobotMove>> target)
 {
     drawer.Dot(style, target.Item1);
     Vector pos = from;
     foreach (var move in target.Item2)
     {
         Vector pos2 = pos.Add(move.ToVector());
         drawer.Line(style, pos, pos2);
         pos = map.GetTrampolineTarget(pos2);
     }
 }