public LocalAwareness() { HeroTable = new List <HeroInfo>(); foreach (AIHeroClient h in EntityManager.Heroes.AllHeroes) { if (h.IsMe) { Me = new HeroInfo(h); HeroTable.Add(Me); } else { HeroTable.Add(new HeroInfo(h)); } } }
public float HeroStrength(HeroInfo h) { return(h.Hero.HealthPercent() * (100 + h.Hero.Level * 10 + h.Kills * 5)); }