示例#1
0
        internal Piece ChangeValues(AvailableObject i_AvailableObject, ref BoardMatrix io_BoardMatrixObject, ref Piece[] io_Matrix)
        {
            char sign = io_BoardMatrixObject.IsKingOrMen(i_AvailableObject, ref io_Matrix);

            if (io_BoardMatrixObject.GotToTheEnd(i_AvailableObject))
            {
                MensPieces[i_AvailableObject.GetIndexInMensPlaces()].IsKing = true;
                io_Matrix[MensPieces[i_AvailableObject.GetIndexInMensPlaces()].IndexInMatrix].IsKing = true;
            }

            MensPieces[i_AvailableObject.GetIndexInMensPlaces()].IndexInMatrix = i_AvailableObject.indexMoveTo;
            MensPieces[i_AvailableObject.GetIndexInMensPlaces()].Sign          = sign;

            return(MensPieces[i_AvailableObject.GetIndexInMensPlaces()]);
        }