Ejemplo n.º 1
0
        public void Attack(Detachment detachment)
        {
            if (Battleground.IsAdjacent(Detachment, detachment))
            {
                Detachment.Attack(detachment);
            }
            else
            {
                (int X, int Y) = Battleground.Position(detachment);

                Move(X, Y);

                if (Battleground.IsAdjacent(Detachment, detachment))
                {
                    Detachment.Attack(detachment);
                }
            }
        }
Ejemplo n.º 2
0
 public void Attack(Detachment detachment) =>
 Detachment.Attack(detachment);