Beispiel #1
0
 private static void write_obstacle(StreamWriter file, obstacle_s ob, int prev)
 {
     string pre = "";
     for (int i = 0; i < prev; i++)
     {
         pre += " ";
     }
     file.WriteLine(pre + "<obstacle>");
     file.WriteLine(pre + "name: " + ob.name);
     write_waypoint(file, ob.center, prev + 2);
     file.WriteLine(pre + "radius: " + ob.rad.ToString("F4", culture));
     file.WriteLine(pre + "<end_obstacle>");
 }
Beispiel #2
0
            public int rot;        // 0 = clockwise, 1 = counterclockwise;

            public buoy_s(string name, obstacle_s body, int rot)
            {
                this.name = name;
                this.body = body;
                this.rot = rot;
            }
Beispiel #3
0
 public buoy_list_s(string name, obstacle_s body, int rot)
 {
     this.bu.name = name;
     this.bu.body = body;
     this.bu.rot = rot;
     this.isChecked = true;
 }