Ejemplo n.º 1
0
        public override List <Point> GetValidTargets(List <Point> board, Point position)
        {
            Point neoSatanPosition = this.Unit.GetPosition();

            base.GetValidTargets(board, position);
            this.ValidPositions = this.ValidPositions.Where(p => p.x >= (neoSatanPosition.x - 1) && p.x <= (neoSatanPosition.x + 1) ||
                                                            p.z >= (neoSatanPosition.z - 1) && p.z <= (neoSatanPosition.z + 1)).ToList();

            strongestTarget = AIUtils.GetStrongestTarget(this.UnitsMap);
            targets         = this.GetRowsToAttack(strongestTarget);
            Logcat.I(this, $"NeoSatanHeadPukeAction target {strongestTarget}");
            return(targets);
        }
Ejemplo n.º 2
0
 protected virtual Point GetTarget()
 {
     return(AIUtils.GetStrongestTarget(this.Unit.UnitsMap));
 }