From c25b4862251f8c773f325d4372010cde6d30ca7e Mon Sep 17 00:00:00 2001 From: RickyRister Date: Thu, 11 Sep 2025 03:44:29 -0700 Subject: [PATCH] Move docs for ViewZone --- cockatrice/src/game/zones/logic/view_zone_logic.cpp | 6 ++++++ cockatrice/src/game/zones/view_zone.cpp | 6 +----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/cockatrice/src/game/zones/logic/view_zone_logic.cpp b/cockatrice/src/game/zones/logic/view_zone_logic.cpp index 11fa0a27a..6050cbadf 100644 --- a/cockatrice/src/game/zones/logic/view_zone_logic.cpp +++ b/cockatrice/src/game/zones/logic/view_zone_logic.cpp @@ -3,6 +3,12 @@ #include "../../../settings/cache_settings.h" #include "../../board/card_item.h" +/** + * @param _player the player that the cards are revealed to. + * @param _origZone the zone the cards were revealed from. + * @param _revealZone if false, the cards will be face down. + * @param _writeableRevealZone whether the player can interact with the revealed cards. + */ ZoneViewZoneLogic::ZoneViewZoneLogic(Player *_player, CardZoneLogic *_origZone, int _numberCards, diff --git a/cockatrice/src/game/zones/view_zone.cpp b/cockatrice/src/game/zones/view_zone.cpp index d96cbc28c..69283171e 100644 --- a/cockatrice/src/game/zones/view_zone.cpp +++ b/cockatrice/src/game/zones/view_zone.cpp @@ -18,10 +18,6 @@ #include /** - * @param _p the player that the cards are revealed to. - * @param _origZone the zone the cards were revealed from. - * @param _revealZone if false, the cards will be face down. - * @param _writeableRevealZone whether the player can interact with the revealed cards. * @param parent the parent QGraphicsWidget containing the reveal zone */ ZoneViewZone::ZoneViewZone(ZoneViewZoneLogic *_logic, QGraphicsItem *parent) @@ -116,7 +112,7 @@ void ZoneViewZone::zoneDumpReceived(const Response &r) qobject_cast(getLogic())->updateCardIds(ZoneViewZoneLogic::INITIALIZE); reorganizeCards(); - emit getLogic()->cardCountChanged(); + emit getLogic() -> cardCountChanged(); } // Because of boundingRect(), this function must not be called before the zone was added to a scene.