public bool Equals(GenericPiece other) { return (other != null && other.Player == Player && other.PieceType == PieceType); }
// *** CONSTRUCTION *** // #region Constructors public Piece(Game game, GenericPiece genericPiece, int square) : base(genericPiece) { Game = game; Board = game.Board; Square = square; MoveCount = 0; TypeNumber = Game.GetPieceTypeNumber(genericPiece.PieceType); }
// *** CONSTRUCTION *** // public GenericPiece(GenericPiece piece) { Player = piece.Player; PieceType = piece.PieceType; }
public new bool Equals(GenericPiece other) { return(System.Object.ReferenceEquals(this, other)); }