diff options
Diffstat (limited to 'Userland/Games/Solitaire/SolitaireWidget.h')
-rw-r--r-- | Userland/Games/Solitaire/SolitaireWidget.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Userland/Games/Solitaire/SolitaireWidget.h b/Userland/Games/Solitaire/SolitaireWidget.h index a7d0b95553..b7efe3cc31 100644 --- a/Userland/Games/Solitaire/SolitaireWidget.h +++ b/Userland/Games/Solitaire/SolitaireWidget.h @@ -20,7 +20,7 @@ public: void setup(); private: - SolitaireWidget(GUI::Window&, Function<void(uint32_t)>&& on_score_update); + SolitaireWidget(Function<void(uint32_t)>&& on_score_update); class Animation { public: @@ -85,7 +85,6 @@ private: void stop_game_over_animation(); void create_new_animation_card(); void check_for_game_over(); - void tick(GUI::Window&); ALWAYS_INLINE CardStack& stack(StackLocation location) { @@ -98,8 +97,8 @@ private: virtual void mousemove_event(GUI::MouseEvent&) override; virtual void doubleclick_event(GUI::MouseEvent&) override; virtual void keydown_event(GUI::KeyEvent&) override; + virtual void timer_event(Core::TimerEvent&) override; - RefPtr<Core::Timer> m_timer; NonnullRefPtrVector<Card> m_focused_cards; NonnullRefPtrVector<Card> m_new_deck; CardStack m_stacks[StackLocation::__Count]; |