mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-08 11:03:25 -08:00
[Game] Move zone dump request onto ZoneViewZoneLogic per review
This commit is contained in:
parent
aabec45d2b
commit
1ab7f3666d
3 changed files with 28 additions and 5 deletions
|
|
@ -3,6 +3,8 @@
|
|||
#include "../../client/settings/cache_settings.h"
|
||||
#include "../../game_graphics/board/card_item.h"
|
||||
#include "../board/card_list.h"
|
||||
#include "../player/player_actions.h"
|
||||
#include "../player/player_logic.h"
|
||||
|
||||
#include <QtGlobal>
|
||||
#include <libcockatrice/settings/interface_settings.h>
|
||||
|
|
@ -177,4 +179,14 @@ void ZoneViewZoneLogic::setWriteableRevealZone(bool _writeableRevealZone)
|
|||
emit removeFromViews();
|
||||
}
|
||||
writeableRevealZone = _writeableRevealZone;
|
||||
}
|
||||
}
|
||||
|
||||
PendingCommand *ZoneViewZoneLogic::requestZoneDump()
|
||||
{
|
||||
PlayerActions *actions = getPlayer()->getPlayerActions();
|
||||
PendingCommand *pend = actions->prepareZoneDump(this, numberCards);
|
||||
if (pend != nullptr) {
|
||||
actions->sendGameCommand(pend);
|
||||
}
|
||||
return pend;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue