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