Exemplo n.º 1
0
        /// <summary>
        /// Gets the color of the ward circle.
        /// </summary>
        /// <param name="w">The ward.</param>
        /// <returns></returns>
        private static Color GetWardColor(WardTypeWrapper w)
        {
            var colour = Color.Chartreuse;

            switch (w.WardType)
            {
            case WardType.Green:
                colour = Color.Chartreuse;
                break;

            case WardType.Pink:
                colour = Color.DarkMagenta;
                break;

            case WardType.Trinket:
            case WardType.TrinketUpgrade:
                colour = Color.Yellow;
                break;

            case WardType.TeemoShroom:
            case WardType.ShacoBox:
                colour = Color.DarkRed;
                break;
            }
            return(colour);
        }
Exemplo n.º 2
0
        }                                                                 // LOL NOT RIGHT - BERB - Elobuddy doesn't have a dispose/remove function for Sprites

        /// <summary>
        /// Initializes a new instance of the <see cref="Ward"/> class.
        /// </summary>
        /// <param name="wrapper">The wrapper.</param>
        public Ward(WardTypeWrapper wrapper)
        {
            WardTypeW = wrapper;
        }
Exemplo n.º 3
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Ward" /> class.
 /// </summary>
 /// <param name="wrapper">The wrapper.</param>
 public Ward(WardTypeWrapper wrapper)
 {
     WardTypeW = wrapper;
 }