mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:27:35 +00:00
LibCards+Games: Move mark_intersecting_stacks_dirty()
to CardGame
As part of this, made a const overload for `Card::rect()`. We need the non-const one too as it's used for modifying the position of a card that's being dragged. I plan on changing that soon but we'll see.
This commit is contained in:
parent
12612703f9
commit
5960c0556f
7 changed files with 12 additions and 22 deletions
|
@ -25,6 +25,7 @@ public:
|
|||
NonnullRefPtrVector<CardStack> const& stacks() const { return m_stacks; }
|
||||
CardStack& stack_at_location(int location) { return m_stacks[location]; }
|
||||
void add_stack(NonnullRefPtr<CardStack>);
|
||||
void mark_intersecting_stacks_dirty(Card const& intersecting_card);
|
||||
|
||||
void dump_layout() const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue