コード例 #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
ファイル: qgoboard_review.cpp プロジェクト: Ellyster/qgo
/*
 * 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
ファイル: qgoboard_match.cpp プロジェクト: alserkli/qgo
/*
 * 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
ファイル: qgoboard_match.cpp プロジェクト: alserkli/qgo
/*
 * 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);
}