Пример #1
0
        public static void DrawAllSpellRange(Color RGB)
        {
            foreach (string RangeSlot in RangeSlotList)
            {
                float SpellRange = SpellBook.SpellDB[RangeSlot].ToObject <JObject>()["Range"][0]
                                   .ToObject <float>();

                if (UsedRangeSlotsList.Count != 0)
                {
                    if (!UsedRangeSlotsList.Contains(SpellRange))
                    {
                        UsedRangeSlotsList.Add(SpellRange);
                    }
                }
                else
                {
                    UsedRangeSlotsList.Add(SpellRange);
                }
            }

            foreach (float Range in UsedRangeSlotsList)
            {
                DrawFactory.DrawCircleRange(GetPosition(), Range, RGB, 2.5f);
            }
        }
Пример #2
0
 public static void DrawSpellRange(SpellBook.SpellSlot Slot, Color Colour, float Thickness)
 {
     if (IsVisible() && GetCurrentHealth() > 1.0f)
     {
         DrawFactory.DrawCircleRange(GetPosition(), SpellBook.GetSpellRadius(Slot),
                                     Colour, Thickness);
     }
 }
Пример #3
0
 public static void DrawAttackRange(Color Colour, float Thickness)
 {
     if (IsVisible() && GetCurrentHealth() > 1.0f)
     {
         DrawFactory.DrawCircleRange(GetPosition(), GetBoundingRadius() + GetAttackRange(),
                                     Colour, Thickness);
     }
 }