summaryrefslogtreecommitdiff
path: root/Userland/Games/FlappyBug/Game.h
diff options
context:
space:
mode:
authorcreator1creeper1 <creator1creeper1@airmail.cc>2021-12-23 22:26:47 +0100
committerBrian Gianforcaro <b.gianfo@gmail.com>2021-12-23 17:42:05 -0800
commit81eb4503691f2f294b51e7686c4e8cb655fcb6a7 (patch)
tree4609dbd8944e565ab539f392a069be8c1d778336 /Userland/Games/FlappyBug/Game.h
parent05d91b58435d06d7b922325b56a76253586e6ce6 (diff)
downloadserenity-81eb4503691f2f294b51e7686c4e8cb655fcb6a7.zip
FlappyBug: Make helper structs public
They will need to be referenced by main later on.
Diffstat (limited to 'Userland/Games/FlappyBug/Game.h')
-rw-r--r--Userland/Games/FlappyBug/Game.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Games/FlappyBug/Game.h b/Userland/Games/FlappyBug/Game.h
index f3055f475e..b6628742c9 100644
--- a/Userland/Games/FlappyBug/Game.h
+++ b/Userland/Games/FlappyBug/Game.h
@@ -41,6 +41,7 @@ private:
bool ready_to_start() const;
void player_input();
+public:
struct Bug {
const float x { 50 };
const float radius { 16 };
@@ -141,6 +142,7 @@ private:
}
};
+private:
Bug m_bug;
Obstacle m_obstacle;
Cloud m_cloud;