mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-09 03:23:24 -08:00
Add distinct random hand reveals with private recipient delivery
This commit is contained in:
parent
e08402ac94
commit
ccdee18db2
14 changed files with 418 additions and 8 deletions
|
|
@ -1756,6 +1756,17 @@ void PlayerActions::actRevealRandomHandCard(int revealToPlayerId)
|
|||
sendGameCommand(cmd);
|
||||
}
|
||||
|
||||
PendingCommand *PlayerActions::prepareRandomHandReveal(int revealToPlayerId, int amount)
|
||||
{
|
||||
Command_RevealRandomCards cmd;
|
||||
if (revealToPlayerId != -1) {
|
||||
cmd.set_player_id(revealToPlayerId);
|
||||
}
|
||||
cmd.set_zone_name(ZoneNames::HAND);
|
||||
cmd.set_number_of_cards(amount);
|
||||
return prepareGameCommand(cmd);
|
||||
}
|
||||
|
||||
void PlayerActions::actRevealLibrary(int revealToPlayerId)
|
||||
{
|
||||
Command_RevealCards cmd;
|
||||
|
|
|
|||
|
|
@ -83,6 +83,7 @@ public:
|
|||
* @param numberCards How many cards to dump, -1 for all.
|
||||
*/
|
||||
PendingCommand *prepareZoneDump(CardZoneLogic *zone, int numberCards);
|
||||
PendingCommand *prepareRandomHandReveal(int revealToPlayerId, int amount);
|
||||
|
||||
/**
|
||||
* @brief Sets the tapped state of the cards that do not already have it.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue