public Controller()
        {
            List <HeroTable> heroes;

            using (DotaBaseContext context = new DotaBaseContext())
            {
                heroes = context.HeroTable.ToList();
                foreach (HeroTable h in heroes)
                {
                    if (h.Range)
                    {
                        RangeHero range = new RangeHero(h);
                        Heroes.Add(range);
                    }
                    else
                    {
                        MeleeHero melee = new MeleeHero(h);
                        Heroes.Add(melee);
                    }
                }
            }
        }
 public bool AnimationAttackCompare(MeleeHero hero1, MeleeHero hero2)
 {
     return(hero1.AttackAnimationSpeed < hero2.AttackAnimationSpeed);
 }