Example #1
0
        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));
            }

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