Cockatrice/cockatrice
Basile Clement 1409dcc2e8
Remove isView flag from CardZone (#5728)
* Remove `isView` flag from CardZone

This flag is used for two purposes:

 1. It is used as a check for casting to a zone to a `ZoneViewZone`;

 2. Non-view zones are added to the player's zones on construction

This patch removes the `isView` flag and instead:

 1. We directly cast zones to `ZoneViewZone` using a dynamic (qobject)
    cast and use the result of the cast instead of the `isView` flag to
    detect if we are a view zone or not;

 2. The player records its own zones when they are created, simplifying
    control flow.

* Review
2025-04-26 19:55:54 -04:00
..
resources Add logging to LocalClient (#5827) 2025-04-15 01:25:17 +00:00
sounds Add cmake format (#4618) 2022-05-08 21:22:43 +02:00
src Remove isView flag from CardZone (#5728) 2025-04-26 19:55:54 -04:00
themes Add cmake format (#4618) 2022-05-08 21:22:43 +02:00
translations Updates for project Cockatrice and language it (#5876) 2025-04-24 22:39:35 -04:00
.qdevelop icon_draw and icon_untap added, icon_general and icon_messages modified 2009-07-31 13:37:16 +02:00
CMakeLists.txt Move card_item and related to src/game/board (#5867) 2025-04-20 14:37:52 +00:00
cockatrice.desktop Updated Spanish translation 2011-07-16 11:38:57 +02:00
cockatrice.qrc Generic mana symbols. (#5685) 2025-03-03 13:12:09 -05:00
cockatrice.rc Included uninstaller for Windows version 2010-09-17 15:26:07 +02:00
cockatrice_en@source.ts Update translation source strings (#5781) 2025-04-03 00:17:25 -04:00