#include "player_actions.h"#include "../../interface/widgets/tabs/tab_game.h"#include "../../interface/widgets/utility/get_text_with_max.h"#include "../board/card_item.h"#include "../dialogs/dlg_move_top_cards_until.h"#include "../dialogs/dlg_roll_dice.h"#include "../zones/hand_zone.h"#include "../zones/logic/view_zone_logic.h"#include "../zones/table_zone.h"#include "card_menu_action_type.h"#include <libcockatrice/card/database/card_database_manager.h>#include <libcockatrice/card/relation/card_relation.h>#include <libcockatrice/protocol/pb/command_attach_card.pb.h>#include <libcockatrice/protocol/pb/command_change_zone_properties.pb.h>#include <libcockatrice/protocol/pb/command_create_token.pb.h>#include <libcockatrice/protocol/pb/command_draw_cards.pb.h>#include <libcockatrice/protocol/pb/command_flip_card.pb.h>#include <libcockatrice/protocol/pb/command_game_say.pb.h>#include <libcockatrice/protocol/pb/command_move_card.pb.h>#include <libcockatrice/protocol/pb/command_mulligan.pb.h>#include <libcockatrice/protocol/pb/command_reveal_cards.pb.h>#include <libcockatrice/protocol/pb/command_roll_die.pb.h>#include <libcockatrice/protocol/pb/command_set_card_attr.pb.h>#include <libcockatrice/protocol/pb/command_set_card_counter.pb.h>#include <libcockatrice/protocol/pb/command_shuffle.pb.h>#include <libcockatrice/protocol/pb/command_undo_draw.pb.h>#include <libcockatrice/protocol/pb/context_move_card.pb.h>#include <libcockatrice/utility/trice_limits.h>Functions | |
| static QList< CardList::SortOption > | expandSortOption (CardList::SortOption option) |
| The sortHand actions only pass along a single SortOption in its data. This method fills out the rest of the sort priority list given that option. | |
| static void | selectCardsInZone (const CardZoneLogic *zone, std::function< bool(const CardItem *)> filter=[](const CardItem *) { return true;}) |
| static bool | isUnwritableRevealZone (CardZoneLogic *zone) |
| returns true if the zone is a unwritable reveal zone view (eg a card reveal window). Will return false if zone is nullptr. | |
Variables | |
| static constexpr int | MOVE_TOP_CARD_UNTIL_INTERVAL = 100 |
|
static |
The sortHand actions only pass along a single SortOption in its data. This method fills out the rest of the sort priority list given that option.
| option | The single sort option |
|
static |
returns true if the zone is a unwritable reveal zone view (eg a card reveal window). Will return false if zone is nullptr.
|
static |
Selects all cards in the given zone.
| zone | The zone to select from |
| filter | A predicate to filter which cards are selected. Defaults to always returning true. |
|
staticconstexpr |