Category5.Victim.CanDrawVictim C# (CSharp) Method

CanDrawVictim() public static method

public static CanDrawVictim ( Level level, Victim victim ) : bool
level Level
victim Victim
return bool
        public static bool CanDrawVictim(Level level, Victim victim)
        {
            float initalScale = 10000f;

            if (victim.Bounds.Width + victim.Bounds.Height > (level.ScreenBounds.Width + level.ScreenBounds.Height) / 120f)
            {
                return true;
            }
            else
            {
                if (level.ScreenBounds.Width + level.ScreenBounds.Height < initalScale)
                {
                    return true;
                }
                if (victim.VictimID % 2 == 0 && (level.ScreenBounds.Width + level.ScreenBounds.Height < initalScale * 1.5f))
                {
                    return true;
                }
                if (victim.VictimID % 3 == 0 && (level.ScreenBounds.Width + level.ScreenBounds.Height < initalScale * 2.0f))
                {
                    return true;
                }
                if (victim.VictimID % 4 == 0 && (level.ScreenBounds.Width + level.ScreenBounds.Height < initalScale * 2.25f))
                {
                    return true;
                }
                if (victim.VictimID % 5 == 0 && (level.ScreenBounds.Width + level.ScreenBounds.Height < initalScale * 2.5f))
                {
                    return true;
                }
            }

            return false;
        }