mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:47:35 +00:00
LibCards+Games: Make CardGame responsible for managing CardStacks
Just moving some code around really.
This commit is contained in:
parent
46299f3853
commit
6ef0504a42
6 changed files with 75 additions and 73 deletions
|
@ -17,6 +17,18 @@ CardGame::CardGame()
|
|||
set_background_color(background_color.value_or(Color::from_rgb(0x008000)));
|
||||
}
|
||||
|
||||
void CardGame::add_stack(NonnullRefPtr<CardStack> stack)
|
||||
{
|
||||
m_stacks.append(move(stack));
|
||||
}
|
||||
|
||||
void CardGame::dump_layout() const
|
||||
{
|
||||
dbgln("------------------------------");
|
||||
for (auto const& stack : stacks())
|
||||
dbgln("{}", stack);
|
||||
}
|
||||
|
||||
void CardGame::config_string_did_change(String const& domain, String const& group, String const& key, String const& value)
|
||||
{
|
||||
if (domain == "Games" && group == "Cards") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue