Пример #1
0
        public void Draw(RadarForm form)
        {
            const string othTop = "";
            string       othBot;

            foreach (PUnit mob in ObjectManager.GetUnits)
            {
                if (mob.GUID.Equals(ObjectManager.MyPlayer.GUID))
                {
                    continue;
                }

                if (mob.IsPlayer)
                {
                    continue;
                }

                if (mob.IsDead)
                {
                    continue;
                }

                othBot = mob.Name + " ";
                othBot = othBot.TrimEnd();

                form.PrintArrow(_colorUnits,
                                form.OffsetY(mob.Location.Y, ObjectManager.MyPlayer.Location.Y),
                                form.OffsetX(mob.Location.X, ObjectManager.MyPlayer.Location.X),
                                mob.Facing, othTop, othBot);
            }
        }
Пример #2
0
 public void Draw(RadarForm form)
 {
     string othBot;
     foreach (
         PPlayer play in
             ObjectManager.GetPlayers.Where(
                 cur => !cur.PlayerFaction.Equals(ObjectManager.MyPlayer.PlayerFaction)))
     {
         if (play.GUID.Equals(ObjectManager.MyPlayer.GUID))
             continue;
         string othTop = play.Name;
         othBot = " Lvl: " + play.Level;
         othBot = othBot.TrimEnd();
         form.PrintArrow(_colorEnemies, form.OffsetY(play.Location.Y, ObjectManager.MyPlayer.Location.Y),
                         form.OffsetX(play.Location.X, ObjectManager.MyPlayer.Location.X),
                         play.Facing, othTop, othBot);
     }
 }
Пример #3
0
        public void Draw(RadarForm form)
        {
            string othBot;

            foreach (
                PPlayer play in
                ObjectManager.GetPlayers.Where(
                    cur => !cur.PlayerFaction.Equals(ObjectManager.MyPlayer.PlayerFaction)))
            {
                if (play.GUID.Equals(ObjectManager.MyPlayer.GUID))
                {
                    continue;
                }
                string othTop = play.Name;
                othBot = " Lvl: " + play.Level;
                othBot = othBot.TrimEnd();
                form.PrintArrow(_colorEnemies, form.OffsetY(play.Location.Y, ObjectManager.MyPlayer.Location.Y),
                                form.OffsetX(play.Location.X, ObjectManager.MyPlayer.Location.X),
                                play.Facing, othTop, othBot);
            }
        }
Пример #4
0
        public void Draw(RadarForm form)
        {
            const string othTop = "";
            string othBot;
            foreach (PUnit mob in ObjectManager.GetUnits)
            {
                if (mob.GUID.Equals(ObjectManager.MyPlayer.GUID))
                    continue;

                if (mob.IsPlayer)
                    continue;

                if (mob.IsDead)
                    continue;

                othBot = mob.Name + " ";
                othBot = othBot.TrimEnd();

                form.PrintArrow(_colorUnits,
                                form.OffsetY(mob.Location.Y, ObjectManager.MyPlayer.Location.Y),
                                form.OffsetX(mob.Location.X, ObjectManager.MyPlayer.Location.X),
                                mob.Facing, othTop, othBot);
            }
        }
Пример #5
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);
         }
     }
 }
Пример #6
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);
         }
     }
 }