示例#1
0
文件: qgoboard.cpp 项目: Ellyster/qgo
/*
 * This functions gets the move request (from a board click)
 * and displays the resulting stone (if valid)
 */
void qGoBoard::localMoveRequest(StoneColor c, int x, int y)
{
	if (doMove(c,x,y))
	{
		boardwindow->getBoardHandler()->updateMove(tree->getCurrent());
		sendMoveToInterface(c,x,y);
	}
}
示例#2
0
/*
 * local move request to be sent to the server
 */
void qGoBoardReviewInterface::localMoveRequest(StoneColor c, int x, int y)
{
//	if (doMove(c,x,y))
		// FIXME : this should be made in a better way : wait for the interface to acknowledge before adding the move to the tree
//	{
//		boardwindow->getBoardHandler()->updateMove(tree->getCurrent());
		sendMoveToInterface(c,x,y);
//	}
	
}
示例#3
0
/*
 * This functions gets the request (from a board click)
 * to mark a stone as dead/undead (score mode). this sends the click coords to server
 */
void qGoBoardMatchInterface::localMarkDeadRequest(int x,  int y)
{
	//color is ignored as far as I know, still iffy FIXME
	sendMoveToInterface(stoneBlack,x,y);
}
示例#4
0
/*
 * We subclass this function, because the server will send the move back
 * so there is no need to have it displayed
 */
void qGoBoardMatchInterface::localMoveRequest(StoneColor c, int x, int y)
{
	sendMoveToInterface(c,x,y);
}