• Home
  • API documentation
Show / Hide Table of Contents
  • ChessSharp
    • ChessUtilities
    • GameBoard
    • GameState
    • Move
    • Piece
    • Player
  • ChessSharp.Pieces
    • Bishop
    • King
    • Knight
    • Pawn
    • PawnPromotion
    • Queen
    • Rook
  • ChessSharp.SquareData
    • File
    • Rank
    • Square

Class Piece

Represents the base class of the pieces.

Inheritance
System.Object
Piece
Bishop
King
Knight
Pawn
Queen
Rook
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ChessSharp
Assembly: ChessSharp.dll
Syntax
public abstract class Piece

Constructors

| Improve this Doc View Source

Piece(Player)

Declaration
protected Piece(Player player)
Parameters
Type Name Description
Player player

Properties

| Improve this Doc View Source

Owner

Gets the owner Player of the piece.

Declaration
public Player Owner { get; }
Property Value
Type Description
Player

Methods

| Improve this Doc View Source

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean
Overrides
System.Object.Equals(System.Object)
| Improve this Doc View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.Object.GetHashCode()
  • Improve this Doc
  • View Source
Back to top Generated by DocFX