mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 02:07:35 +00:00
Hearts: Allow player to set their name
Added a new settings dialog to Hearts with a textbox to allow the player to set a name, which is persisted in the Hearts config file.
This commit is contained in:
parent
e706de8f91
commit
d27616cf36
6 changed files with 104 additions and 4 deletions
|
@ -79,8 +79,10 @@ Game::~Game()
|
|||
{
|
||||
}
|
||||
|
||||
void Game::setup()
|
||||
void Game::setup(String player_name)
|
||||
{
|
||||
m_players[0].name = move(player_name);
|
||||
|
||||
NonnullRefPtrVector<Card> deck;
|
||||
|
||||
dbgln_if(HEARTS_DEBUG, "=====");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue