示例#1
0
// Wolf Action.
QueryResult WolfAction::query() {
	QueryResult qr;
	cout << " >> [~ Wolf Action ~]: Enter the location 'x,y' of the card you want to put in your hand." << endl;
	cout << " >> Enter 'x': ";
	string coordinate;
	getline(cin, coordinate);
	qr.append(coordinate);
	cout << " >> Enter 'y': ";
	getline(cin, coordinate);
	qr.append(coordinate);
	return qr;
}
示例#2
0
// Hare Action.
QueryResult HareAction::query() {
	QueryResult qr = QueryResult();
	cout << " >> [~ Hare Action ~]: Enter the coordinates 'x0,y0,x1,y1' of which card you want to move and where." << endl;
	cout << " >> Enter 'x0': ";
	string coordinate;
	getline(cin, coordinate);
	qr.append(coordinate);
	cout << " >> Enter 'y0': ";
	getline(cin, coordinate);
	qr.append(coordinate);
	cout << " >> Enter 'x1': ";
	getline(cin, coordinate);
	qr.append(coordinate);
	cout << " >> Enter 'y1': ";
	getline(cin, coordinate);
	qr.append(coordinate);
	return qr;
}
示例#3
0
// Deer Action.
QueryResult DeerAction::query() {
	cout << " >> [~ Deer Action ~]: Enter the name of the player you wish to exchange your secret animal with." << endl;
	cout << " >> Name: ";
	string playerName = "";
	getline(cin, playerName);
	QueryResult qr = QueryResult();
	qr.append(playerName);
	return qr;
}