summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCards/CardGame.h
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2023-01-20 13:33:30 +0000
committerLinus Groh <mail@linusgroh.de>2023-01-22 21:31:36 +0000
commitccabc8e9309bef79320ec61a98951c7003e24584 (patch)
treebb2bea323725ca910d9358ddb98dc6764d962b6c /Userland/Libraries/LibCards/CardGame.h
parentc7c4d70f6ed9076745daf61236fdbc34cf4f2fce (diff)
downloadserenity-ccabc8e9309bef79320ec61a98951c7003e24584.zip
LibCards+Games: Return ErrorOr from CardStack::add_all_grabbed_cards()
...and CardGame::pick_up_cards_from_stack() which is its only caller.
Diffstat (limited to 'Userland/Libraries/LibCards/CardGame.h')
-rw-r--r--Userland/Libraries/LibCards/CardGame.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibCards/CardGame.h b/Userland/Libraries/LibCards/CardGame.h
index d6d60e04c2..15ece5eaf4 100644
--- a/Userland/Libraries/LibCards/CardGame.h
+++ b/Userland/Libraries/LibCards/CardGame.h
@@ -42,7 +42,7 @@ public:
NonnullRefPtrVector<Card> const& moving_cards() const { return m_moving_cards; }
Gfx::IntRect moving_cards_bounds() const;
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);
+ ErrorOr<void> pick_up_cards_from_stack(CardStack&, Gfx::IntPoint click_location, CardStack::MovementRule);
RefPtr<CardStack> find_stack_to_drop_on(CardStack::MovementRule) const;
ErrorOr<void> drop_cards_on_stack(CardStack&, CardStack::MovementRule);
void clear_moving_cards();