private DestroyOccupant ( |
||
board | ||
move | ||
return | void |
private void DestroyOccupant(Square[][] board, Move move)
{
var occupant = GetDestinationPiece(board, move);
if (occupant != null)
{
occupant.Alive = false;
occupant.CurrentColumn = null;
occupant.CurrentRow = null;
}
}