[Refactor] Move the remaining zone commands out of game_graphics/zones/ (#7418)

* [Refactor] Move the remaining zone commands out of game_graphics/zones/

* [Game] Move zone dump request onto ZoneViewZoneLogic per review

---------

Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
BruebachL 2026-10-31 18:44:09 +01:00 • committed by GitHub
parent 563833a88a
commit 095b135640
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 89 additions and 41 deletions

View file

@ -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;
}