Пример #1
0
 static void FightForRanged(Zombo fightFor)
 {
     for (int i = 0; i < 1; i++)
     {
         var killTargets = PointHelper.ZombosAroundPoint(fightFor.location, 3).Where(x => x.alliance != fightFor.alliance);
         if (killTargets.Any())
         {
             EntityControl.Kill(ListHelper.RandomElementInEnumerable(killTargets));
             ZomboFoodManager.IncrementFoodFor(fightFor, 1);
         }
     }
 }
Пример #2
0
        //TODO: add some killed flag to the zombo killed above to indicate that it shouldn't execute. also affects below

        static void ManageZombo(Zombo toManage)
        {
            ZomboRandomWalker.RandomWalkZombo(toManage);
            ZomboFighter.FightForZombo(toManage);
            ZomboFoodManager.ManageFoodFor(toManage);
        }