public void DrawDeadFetishBlowdartEnemy(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_Enemy(angle, state1.Value), x, y); } }
public void DrawFetishBlowdartEnemy(double x, double y, double angle, double radius, double life, double maxLife, UnitStateSprite stateSprite, bool isBurning, bool isFrozen) { var sprite = Sprites.FetishBlowdart_Enemy(angle, stateSprite); if (isFrozen) { sprite.Color = new Color(0, 255, 255, 200); } DrawGameUnitSprite(sprite, x, y); DrawHealth(sprite, x, y, life, maxLife, false); if (isBurning) { DrawSmallFlame(x, y, isFrozen ? (byte)160 : (byte)200); } }