1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:47:35 +00:00

LibCards+Game: Return ErrorOr from CardGame::drop_cards_on_stack()

This commit is contained in:
Sam Atkins 2023-01-22 21:28:28 +00:00 committed by Linus Groh
parent 8b3a94ffbc
commit 0855e9f014
4 changed files with 7 additions and 5 deletions

View file

@ -44,7 +44,7 @@ public:
RefPtr<CardStack> moving_cards_source_stack() const { return m_moving_cards_source_stack; }
void pick_up_cards_from_stack(CardStack&, Gfx::IntPoint click_location, CardStack::MovementRule);
RefPtr<CardStack> find_stack_to_drop_on(CardStack::MovementRule) const;
void drop_cards_on_stack(CardStack&, CardStack::MovementRule);
ErrorOr<void> drop_cards_on_stack(CardStack&, CardStack::MovementRule);
void clear_moving_cards();
bool is_previewing_card() const { return !m_previewed_card_stack.is_null(); }