mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:17:35 +00:00
FlappyBug: Propagate errors in Cloud class
Move-construct Cloud into the Game class to improve error handling.
This commit is contained in:
parent
ff359c27e3
commit
6f592a32cc
3 changed files with 19 additions and 9 deletions
|
@ -8,8 +8,9 @@
|
|||
|
||||
namespace FlappyBug {
|
||||
|
||||
Game::Game(Bug bug)
|
||||
Game::Game(Bug bug, Cloud cloud)
|
||||
: m_bug(move(bug))
|
||||
, m_cloud(move(cloud))
|
||||
{
|
||||
set_override_cursor(Gfx::StandardCursor::Hidden);
|
||||
start_timer(16);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue