只有白子是怎么回事?
只有白子,而且也不显示胜利
只有白子,而且也不显示胜利
2019-05-20
private void drawPieces(Canvas canvas) { for(int i=0,n=mWhiteArray.size();i<n;i++){ //拿到棋子 Point whitePoint = mWhiteArray.get(i); canvas.drawBitmap(mWhitePiece, (whitePoint.x+(1-ratioPieceOfLineHeight)/2)*mLineHeight, (whitePoint.y+(1-ratioPieceOfLineHeight)/2)*mLineHeight,null); } for(int i=0,n=mBlackArray.size();i<n;i++){ Point blackPoint = mBlackArray.get(i); canvas.drawBitmap(mBlackPiece, (blackPoint.x+(1-ratioPieceOfLineHeight)/2)*mLineHeight, (blackPoint.y+(1-ratioPieceOfLineHeight)/2)*mLineHeight,null); } }
会不会是这段的错误,复制的时候出错了?
举报