Class Piece
Represents the base class of the pieces.
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 SourcePiece(Player)
Declaration
protected Piece(Player player)
Parameters
Type | Name | Description |
---|---|---|
Player | player |
Properties
| Improve this Doc View SourceOwner
Gets the owner Player of the piece.
Declaration
public Player Owner { get; }
Property Value
Type | Description |
---|---|
Player |
Methods
| Improve this Doc View SourceEquals(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()