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)); }