예제 #1
0
 public bool Equals(GenericPiece other)
 {
     return
         (other != null &&
          other.Player == Player &&
          other.PieceType == PieceType);
 }
예제 #2
0
        // *** 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);
        }
예제 #3
0
        // *** CONSTRUCTION *** //

        public GenericPiece(GenericPiece piece)
        {
            Player    = piece.Player;
            PieceType = piece.PieceType;
        }
예제 #4
0
 public new bool Equals(GenericPiece other)
 {
     return(System.Object.ReferenceEquals(this, other));
 }