Game/Pieces/Piece.cs
/// <summary>
/// Handles targeting king for pieces that don't have line of sight movements
/// </summary>
/// <param name="board"></param>
/// <param name="coordinate"></param>
Handles targeting king for pieces that don't have line of sight movements
Handles targeting king for pieces that don ' t have line of sight movements
protected void HandleTargetKing(Tile[] board, Coords coordinate)
        {
            if (!board.HasPawnOnTile(coordinate) || board[(int) coordinate]?.Piece.EPiece != EPiece.King)
                return;
            ((King) board[(int) coordinate].Piece).Checks.Add(new AttackCoord(Coords, true));
        }
protected void HandleTargetKing ( Tile [ ] board , Coords coordinate ) { if ( ! board . HasPawnOnTile ( coordinate ) || board [ ( int ) coordinate ] ? . Piece . EPiece != EPiece . King ) return ; ( ( King ) board [ ( int ) coordinate ] . Piece ) . Checks . Add ( new AttackCoord ( Coords , true ) ) ; }
Handles targeting king for pieces that don't have line of sight movements
Handles targeting king for pieces that don ' t have line of sight movements
board
Tile[]
None
coordinate
Coords
None