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 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)); }
public float HeroStrength(HeroInfo h) { return (h.hero.HealthPercent)*(100 + h.hero.Level*10 + h.kills*5); }