示例#1
0
 private void PrintWay(List <Location> loc, Color color, RadarForm form)
 {
     if (loc != null)
     {
         PointF[] points;
         Point    tempP;
         Location ld;
         if (loc.Count != 0)
         {
             points = new PointF[loc.Count + 1];
             int i = 0;
             foreach (Location lo in loc)
             {
                 form.PrintCircle(color, form.OffsetY(lo.Y, ObjectManager.MyPlayer.Location.Y),
                                  form.OffsetX(lo.X, ObjectManager.MyPlayer.Location.X), "");
                 tempP = new Point(form.OffsetY(lo.Y, ObjectManager.MyPlayer.Location.Y),
                                   form.OffsetX(lo.X, ObjectManager.MyPlayer.Location.X));
                 points[i] = tempP;
                 i++;
             }
             ld    = loc[0];
             tempP = new Point(form.OffsetY(ld.Y, ObjectManager.MyPlayer.Location.Y),
                               form.OffsetX(ld.X, ObjectManager.MyPlayer.Location.X));
             points[i] = tempP;
             form.ScreenDc.DrawLines(new Pen(_colorWaypoints), points);
         }
     }
 }
示例#2
0
 public void Draw(RadarForm form)
 {
     foreach (PGameObject selectNode in ObjectManager.GetGameObject)
     {
         if (FindNode.IsHerb(selectNode) || FindNode.IsMine(selectNode))
         {
             if (FlyingBlackList.IsBlacklisted(selectNode))
             {
                 form.PrintCircle(_colorBadNodes,
                                  form.OffsetY(selectNode.Location.Y, ObjectManager.MyPlayer.Location.Y),
                                  form.OffsetX(selectNode.Location.X, ObjectManager.MyPlayer.Location.X),
                                  selectNode.Name);
             }
             else
             {
                 form.PrintCircle(_colorObjects,
                                  form.OffsetY(selectNode.Location.Y, ObjectManager.MyPlayer.Location.Y),
                                  form.OffsetX(selectNode.Location.X, ObjectManager.MyPlayer.Location.X),
                                  selectNode.Name);
             }
         }
     }
 }
示例#3
0
 public void Draw(RadarForm form)
 {
     foreach (PGameObject selectNode in ObjectManager.GetGameObject)
     {
         if (selectNode.Name.Contains("Survey"))
         {
             try
             {
                 form.PrintArrow(_colorObjects,
                                 form.OffsetY(selectNode.Location.Y, ObjectManager.MyPlayer.Location.Y),
                                 form.OffsetX(selectNode.Location.X, ObjectManager.MyPlayer.Location.X),
                                 selectNode.Facing, selectNode.Name, "");
                 Logging.Write("" + selectNode.Facing);
             } catch {}
         }
         else
         {
             form.PrintCircle(_colorObjects,
                              form.OffsetY(selectNode.Location.Y, ObjectManager.MyPlayer.Location.Y),
                              form.OffsetX(selectNode.Location.X, ObjectManager.MyPlayer.Location.X),
                              selectNode.Name);
         }
     }
 }
示例#4
0
 public void Draw(RadarForm form)
 {
     foreach (PGameObject selectNode in ObjectManager.GetGameObject)
     {
         if (selectNode.Name.Contains("Survey"))
         {
             try
             {
                 form.PrintArrow(_colorObjects,
                                 form.OffsetY(selectNode.Location.Y, ObjectManager.MyPlayer.Location.Y),
                                 form.OffsetX(selectNode.Location.X, ObjectManager.MyPlayer.Location.X),
                                 selectNode.Facing, selectNode.Name, "");
                 Logging.Write("" + selectNode.Facing);
             } catch {}
         }
         else
         {
             form.PrintCircle(_colorObjects,
                              form.OffsetY(selectNode.Location.Y, ObjectManager.MyPlayer.Location.Y),
                              form.OffsetX(selectNode.Location.X, ObjectManager.MyPlayer.Location.X),
                              selectNode.Name);
         }
     }
 }