Ejemplo n.º 1
1
 private bool IsFreePosition(Player player, Figure figure)
 {
     return figure == null || figure.Player != player;
 }
Ejemplo n.º 2
-1
 private void HandleHit(Player player, Figure enemy)
 {
     if (enemy != null)
     {
         player.Hit();
         enemy.Player.Death();
         this.figures.Remove(enemy);
     }
 }