Exemple #1
0
 public void DrawDeadFetishBlowdartNeutral(double x, double y, double angle, UnitStateSprite?state1 = null, CorpseSprite?state2 = null)
 {
     if (state2.HasValue)
     {
         DrawGameUnitSprite(Sprites.Corpses_Neutral(angle, state2.Value), x, y);
     }
     else if (state1.HasValue)
     {
         DrawGameUnitSprite(Sprites.FetishBlowdart_Neutral(angle, state1.Value), x, y);
     }
 }
Exemple #2
0
        public void DrawFetishBlowdartNeutral(double x, double y, double angle, double radius, double life, double maxLife, UnitStateSprite stateSprite, bool isBurning, bool isFrozen, bool isNeutralAttacking)
        {
            var sprite = Sprites.FetishBlowdart_Neutral(angle, stateSprite);

            if (isFrozen)
            {
                sprite.Color = new Color(0, 255, 255, 200);
            }
            DrawGameUnitSprite(sprite, x, y);
            if (isNeutralAttacking)
            {
                DrawHealth(sprite, x, y, life, maxLife, false);
            }
            if (isBurning)
            {
                DrawSmallFlame(x, y, isFrozen ? (byte)160 : (byte)200);
            }
        }